From: eparis@redhat.com
To: selinux@tycho.nsa.gov
Cc: sds@tycho.nsa.gov, jmorris@namei.org, Eric Paris <eparis@redhat.com>
Subject: [PATCH] SELinux: avc_ss.h whitespace, syntax, and other cleanups
Date: Tue, 22 Apr 2008 17:46:08 -0400 [thread overview]
Message-ID: <12089007782175-git-send-email-eparis@redhat.com> (raw)
From: Eric Paris <eparis@redhat.com>
This patch changes avc_ss.h to fix whitespace and syntax issues. Things that
are fixed may include (does not not have to include)
whitespace at end of lines
spaces followed by tabs
spaces used instead of tabs
spacing around parenthesis
location of { around structs and else clauses
location of * in pointer declarations
removal of initialization of static data to keep it in the right section
useless {} in if statemetns
useless checking for NULL before kfree
fixing of the indentation depth of switch statements
no assignments in if statements
and any number of other things I forgot to mention
Signed-off-by: Eric Paris <eparis@redhat.com>
---
security/selinux/include/avc_ss.h | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/security/selinux/include/avc_ss.h b/security/selinux/include/avc_ss.h
index ff869e8..c0d314d 100644
--- a/security/selinux/include/avc_ss.h
+++ b/security/selinux/include/avc_ss.h
@@ -10,22 +10,19 @@
int avc_ss_reset(u32 seqno);
-struct av_perm_to_string
-{
+struct av_perm_to_string {
u16 tclass;
u32 value;
const char *name;
};
-struct av_inherit
-{
+struct av_inherit {
u16 tclass;
const char **common_pts;
u32 common_base;
};
-struct selinux_class_perm
-{
+struct selinux_class_perm {
const struct av_perm_to_string *av_perm_to_string;
u32 av_pts_len;
const char **class_to_string;
--
1.5.2.1
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next reply other threads:[~2008-04-22 21:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 21:46 eparis [this message]
2008-04-22 21:46 ` [PATCH] SELinux: netlabel.h whitespace, syntax, and other cleanups eparis
2008-04-22 21:46 ` [PATCH] SELinux: objsec.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: selinux/include/security.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: ss/conditional.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: context.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: hashtab.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: mls.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: mls_types.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: policydb.h " eparis
2008-04-22 21:46 ` [PATCH] SELinux: include/security.h " eparis
2008-04-23 5:52 ` James Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12089007782175-git-send-email-eparis@redhat.com \
--to=eparis@redhat.com \
--cc=jmorris@namei.org \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.