Skip to content

Commit

Permalink
Smack: pipefs fix in smack_d_instantiate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Instigat0r authored and cschaufler committed Oct 9, 2015
1 parent d21b7b0 commit 8da4aba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8da4aba

Please sign in to comment.