SELinux: do not set automatic i_ino in selinuxfs
authorEric Paris <eparis@redhat.com>
Mon, 29 Nov 2010 20:46:39 +0000 (15:46 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 30 Nov 2010 22:28:57 +0000 (17:28 -0500)
commitc9e86a9b95f198d7df49b25fcd808ee39cba218f
tree0e62d348103f25a612d649c796cab225db2372c3
parent7ae9f23cbd3ef9daff7f768da4bfd4c56b19300d
SELinux: do not set automatic i_ino in selinuxfs

selinuxfs carefully uses i_ino to figure out what the inode refers to.  The
VFS used to generically set this value and we would reset it to something
useable.  After 85fe4025c616 each filesystem sets this value to a default
if needed.  Since selinuxfs doesn't use the default value and it can only
lead to problems (I'd rather have 2 inodes with i_ino == 0 than one
pointing to the wrong data) lets just stop setting a default.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
security/selinux/selinuxfs.c