On 10/5/2015 3:27 AM, Roman Kubiak wrote:
> 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.kub...@samsung.com>

Acked-by: Casey Schaufler <ca...@schaufler-ca.com>
Applied to https://github.com/cschaufler/smack-next.git#smack-for-4.4

> ---
>  security/smack/smack_lsm.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
> index 996c889..f1d6ef1 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;

--
To unsubscribe from this list: send the line "unsubscribe 
linux-security-module" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to