Commit 8da4aba5 authored by Roman Kubiak's avatar Roman Kubiak Committed by Casey Schaufler

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: default avatarRoman Kubiak <r.kubiak@samsung.com>
Acked-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent d21b7b04
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment