Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b4e8843 authored by Casey Schaufler's avatar Casey Schaufler Committed by James Morris
Browse files

Smack: Mark inode instant in smack_task_to_inode



Smack: Mark inode instant in smack_task_to_inode

/proc clean-up in commit 1bbc5513
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: default avatarCasey Schaufler <casey@schaufler-ca.com>
Signed-off-by: default avatarJames Morris <james.morris@microsoft.com>
parent 894b8c00
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2296,6 +2296,7 @@ static void smack_task_to_inode(struct task_struct *p, struct inode *inode)
	struct smack_known *skp = smk_of_task_struct(p);

	isp->smk_inode = skp;
	isp->smk_flags |= SMK_INODE_INSTANT;
}

/*