mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
Smack: pipefs fix in smack_d_instantiate
This fix writes the task label when smack_d_instantiate is called, before the label of the superblock was written on the pipe's inode. Signed-off-by: Roman Kubiak <r.kubiak@samsung.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
This commit is contained in:
parent
d21b7b049c
commit
8da4aba5bf
1 changed files with 3 additions and 0 deletions
|
@ -3354,6 +3354,9 @@ static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode)
|
||||||
*/
|
*/
|
||||||
isp->smk_inode = smk_of_current();
|
isp->smk_inode = smk_of_current();
|
||||||
break;
|
break;
|
||||||
|
case PIPEFS_MAGIC:
|
||||||
|
isp->smk_inode = smk_of_current();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
isp->smk_inode = sbsp->smk_root;
|
isp->smk_inode = sbsp->smk_root;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue