Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Smack: Mark inode instant in smack_task_to_inode

Smack: Mark inode instant in smack_task_to_inode

/proc clean-up in commit 1bbc55131e59bd099fdc568d3aa0b42634dbd188
resulted in smack_task_to_inode() being called before smack_d_instantiate.
This resulted in the smk_inode value being ignored, even while present
for files in /proc/self. Marking the inode as instant here fixes that.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <james.morris@microsoft.com>

authored by

Casey Schaufler and committed by
James Morris
7b4e8843 894b8c00

+1
+1
security/smack/smack_lsm.c
··· 2296 2296 struct smack_known *skp = smk_of_task_struct(p); 2297 2297 2298 2298 isp->smk_inode = skp; 2299 + isp->smk_flags |= SMK_INODE_INSTANT; 2299 2300 } 2300 2301 2301 2302 /*