diff options
author | Roman Kubiak <r.kubiak@samsung.com> | 2015-10-05 12:27:16 +0200 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2015-10-10 00:13:41 +0200 |
commit | 8da4aba5bf9869f58d2a6bb30daaf54b2fa72569 (patch) | |
tree | ff412b663cff7760540410a90e33712241bdabd3 /security/smack | |
parent | Smack: Minor initialisation improvement (diff) | |
download | linux-8da4aba5bf9869f58d2a6bb30daaf54b2fa72569.tar.xz linux-8da4aba5bf9869f58d2a6bb30daaf54b2fa72569.zip |
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>
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack_lsm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 2c0579d0da20..c2d66ca1127a 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -3354,6 +3354,9 @@ static void smack_d_instantiate(struct dentry *opt_dentry, struct inode *inode) */ isp->smk_inode = smk_of_current(); break; + case PIPEFS_MAGIC: + isp->smk_inode = smk_of_current(); + break; default: isp->smk_inode = sbsp->smk_root; break; |