From: Christopher J. PeBenito Date: Wed, 23 May 2007 13:12:09 +0000 (-0400) Subject: selinux: add selinuxfs structure for object class discovery X-Git-Tag: v2.6.23-rc1~1102^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e47c8fc582a2c9f3cba059e543c4a056cd6bf8c4;p=pandora-kernel.git 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 Signed-off-by: James Morris --- Reading git-diff-tree failed