BACKPORT: Smack: pipefs fix in smack_d_instantiate
authorRoman Kubiak <r.kubiak@samsung.com>
Mon, 5 Oct 2015 10:27:16 +0000 (12:27 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:02:07 +0000 (17:02 +0100)
commitafee0aebca68ee2cc759389eefd549776a2c5c6b
tree54e5007ae19534eaf98a3897dd37a514a0a131e4
parent6e407dc42951621fea4dda77262255c30718b8e7
BACKPORT: 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>
(cherry-picked from upstream 8da4aba5bf9869f58d2a6bb30daaf54b2fa72569)
security/smack/smack_lsm.c