]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
selinux: add selinuxfs structure for object class discovery
authorChristopher J. PeBenito <cpebenito@tresys.com>
Wed, 23 May 2007 13:12:09 +0000 (09:12 -0400)
committerJames Morris <jmorris@namei.org>
Thu, 12 Jul 2007 02:52:20 +0000 (22:52 -0400)
commite47c8fc582a2c9f3cba059e543c4a056cd6bf8c4
tree20f43ed6ecb1bea6160f660721dee748a57e0568
parent0dd4ae516e7b5be89caed2532f9d953d0b1dbf01
selinux: add selinuxfs structure for object class discovery

The structure is as follows (relative to selinuxfs root):

/class/file/index
/class/file/perms/read
/class/file/perms/write
...

Each class is allocated 33 inodes, 1 for the class index and 32 for
permissions.  Relative to SEL_CLASS_INO_OFFSET, the inode of the index file
DIV 33 is the class number.  The inode of the permission file % 33 is the
index of the permission for that class.

Signed-off-by: Christopher J. PeBenito <cpebenito@tresys.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/include/security.h
security/selinux/selinuxfs.c