LWN.net Logo

Updated SELinux module for 2.6.0-test1

From:  Stephen Smalley <sds@epoch.ncsc.mil>
To:  Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>, Greg Kroah-Hartman <greg@kroah.com>, Chris Wright <chris@wirex.com>, James Morris <jmorris@intercode.com.au>, Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk>, Alan Cox <alan@lxorguk.ukuu.org.uk>, Christoph Hellwig <hch@infradead.org>, lkml <linux-kernel@vger.kernel.org>
Subject:  [PATCH][URL] Updated SELinux module for 2.6.0-test1
Date:  17 Jul 2003 09:36:37 -0400

The patch available from
http://www.nsa.gov/selinux/lk/2.6.0-test1-addselinux.patch.gz adds the
SELinux module under security/selinux and modifies the security/Makefile
and security/Kconfig files for SELinux.  For those using
2.6.0-test1-mm1, a diff against it is available at
http://www.nsa.gov/selinux/lk/2.6.0-test1-mm1-updateselinux.patch.gz.
Since the previous version of this patch, a number of code cleanups have
been made with particular focus on the areas cited by Greg, i.e. killing
typedefs, adding printk log levels, and adding kerneldoc comments to the
functions provided by avc.c and ss/services.c.  Many of the code
cleanups were contributed by James Morris.  Andrew Morton caught and
fixed numerous instances of trailing whitespace on lines.  diffstat -p1
output is below.  I'll be sending this patch directly to Linus and
Andrew in a separate message.

 security/Kconfig                                 |    2 
 security/Makefile                                |    6 
 security/selinux/Kconfig                         |   34 
 security/selinux/Makefile                        |   10 
 security/selinux/avc.c                           | 1115 +++++++
 security/selinux/hooks.c                         | 3405 +++++++++++++++++++++++
 security/selinux/include/av_inherit.h            |   35 
 security/selinux/include/av_perm_to_string.h     |  120 
 security/selinux/include/av_permissions.h        |  550 +++
 security/selinux/include/avc.h                   |  159 +
 security/selinux/include/avc_ss.h                |   27 
 security/selinux/include/class_to_string.h       |   39 
 security/selinux/include/common_perm_to_string.h |   65 
 security/selinux/include/flask.h                 |   71 
 security/selinux/include/initial_sid_to_string.h |   32 
 security/selinux/include/objsec.h                |   88 
 security/selinux/include/security.h              |   70 
 security/selinux/selinuxfs.c                     |  593 ++++
 security/selinux/ss/Makefile                     |   14 
 security/selinux/ss/avtab.c                      |  264 +
 security/selinux/ss/avtab.h                      |   68 
 security/selinux/ss/constraint.h                 |   54 
 security/selinux/ss/context.h                    |  117 
 security/selinux/ss/ebitmap.c                    |  332 ++
 security/selinux/ss/ebitmap.h                    |   49 
 security/selinux/ss/global.h                     |   17 
 security/selinux/ss/hashtab.c                    |  277 +
 security/selinux/ss/hashtab.h                    |  125 
 security/selinux/ss/mls.c                        |  741 +++++
 security/selinux/ss/mls.h                        |   99 
 security/selinux/ss/mls_types.h                  |   58 
 security/selinux/ss/policydb.c                   | 1429 +++++++++
 security/selinux/ss/policydb.h                   |  256 +
 security/selinux/ss/services.c                   | 1413 +++++++++
 security/selinux/ss/services.h                   |   21 
 security/selinux/ss/sidtab.c                     |  329 ++
 security/selinux/ss/sidtab.h                     |   59 
 security/selinux/ss/symtab.c                     |   40 
 security/selinux/ss/symtab.h                     |   23 
 39 files changed, 12206 insertions(+)

-- 
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds