[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHC9VhRFxDuRJHYEuRs7kc4ivgaT=-SxdU-o5Lq7H-O+5JJRxQ@mail.gmail.com>
Date: Thu, 9 Feb 2017 11:14:05 -0500
From: Paul Moore <paul@...l-moore.com>
To: Antonio Murdaca <amurdaca@...hat.com>
Cc: selinux@...ho.nsa.gov, Antonio Murdaca <runcom@...hat.com>,
linux-kernel@...r.kernel.org, cgroups@...r.kernel.org,
vgoyal@...hat.com
Subject: Re: [PATCH] security: selinux: allow per-file labeling for cgroupfs
On Thu, Feb 9, 2017 at 11:02 AM, Antonio Murdaca <amurdaca@...hat.com> wrote:
> From: Antonio Murdaca <runcom@...hat.com>
>
> This patch allows genfscon per-file labeling for cgroupfs. For instance,
> this allows to label the "release_agent" file within each
> cgroup mount and limit writes to it.
>
> Signed-off-by: Antonio Murdaca <amurdaca@...hat.com>
> ---
> security/selinux/hooks.c | 2 ++
> 1 file changed, 2 insertions(+)
This was already merged ... ?
* https://marc.info/?l=selinux&m=148652458620202&w=2
> diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
> index 9a8f12f..5a3138e 100644
> --- a/security/selinux/hooks.c
> +++ b/security/selinux/hooks.c
> @@ -808,6 +808,8 @@ static int selinux_set_mnt_opts(struct super_block *sb,
>
> if (!strcmp(sb->s_type->name, "debugfs") ||
> !strcmp(sb->s_type->name, "sysfs") ||
> + !strcmp(sb->s_type->name, "cgroup") ||
> + !strcmp(sb->s_type->name, "cgroup2") ||
> !strcmp(sb->s_type->name, "pstore"))
> sbsec->flags |= SE_SBGENFS;
>
> --
> 2.9.3
--
paul moore
www.paul-moore.com
Powered by blists - more mailing lists