All of lore.kernel.org
 help / color / mirror / Atom feed
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: selinux/include/security.h whitespace, syntax, and other cleanups
Date: Tue, 22 Apr 2008 17:46:11 -0400	[thread overview]
Message-ID: <120890077840-git-send-email-eparis@redhat.com> (raw)
In-Reply-To: <12089007782327-git-send-email-eparis@redhat.com>

From: Eric Paris <eparis@redhat.com>

This patch changes selinux/include/security.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/security.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h
index 1904c46..6445b64 100644
--- a/security/selinux/include/security.h
+++ b/security/selinux/include/security.h
@@ -62,7 +62,7 @@ enum {
 extern int selinux_policycap_netpeer;
 extern int selinux_policycap_openperm;
 
-int security_load_policy(void * data, size_t len);
+int security_load_policy(void *data, size_t len);
 
 int security_policycap_supported(unsigned int req_cap);
 
@@ -110,7 +110,7 @@ int security_node_sid(u16 domain, void *addr, u32 addrlen,
 	u32 *out_sid);
 
 int security_validate_transition(u32 oldsid, u32 newsid, u32 tasksid,
-                                 u16 tclass);
+				 u16 tclass);
 
 int security_sid_mls_copy(u32 sid, u32 mls_sid, u32 *new_sid);
 
-- 
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.

  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 [PATCH] SELinux: avc_ss.h whitespace, syntax, and other cleanups eparis
2008-04-22 21:46 ` [PATCH] SELinux: netlabel.h " eparis
2008-04-22 21:46   ` [PATCH] SELinux: objsec.h " eparis
2008-04-22 21:46     ` eparis [this message]
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=120890077840-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.