Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;