• Eric Paris's avatar
    SELinux: do not set automatic i_ino in selinuxfs · c9e86a9b
    Eric Paris authored
    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 85fe4025 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: default avatarEric Paris <eparis@redhat.com>
    Acked-by: default avatarJames Morris <jmorris@namei.org>
    c9e86a9b
selinuxfs.c 42.1 KB