aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/include/class_to_string.h
diff options
context:
space:
mode:
authorChristopher J. PeBenito <[email protected]>2007-05-23 13:12:09 +0000
committerJames Morris <[email protected]>2007-07-12 02:52:20 +0000
commite47c8fc582a2c9f3cba059e543c4a056cd6bf8c4 (patch)
tree20f43ed6ecb1bea6160f660721dee748a57e0568 /security/selinux/include/class_to_string.h
parentselinux: change sel_make_dir() to specify inode counter. (diff)
downloadkernel-e47c8fc582a2c9f3cba059e543c4a056cd6bf8c4.tar.gz
kernel-e47c8fc582a2c9f3cba059e543c4a056cd6bf8c4.zip
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 <[email protected]> Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'security/selinux/include/class_to_string.h')
0 files changed, 0 insertions, 0 deletions