[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2a52eca2-a064-38da-9f6f-6f4736753067@huawei.com>
Date: Thu, 17 Nov 2022 15:27:40 +0800
From: wangweiyang <wangweiyang2@...wei.com>
To: Paul Moore <paul@...l-moore.com>
CC: <jmorris@...ei.org>, <serge@...lyn.com>,
<serge.hallyn@...onical.com>, <akpm@...ux-foundation.org>,
<aris@...hat.com>, <linux-security-module@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
wangweiyang <wangweiyang2@...wei.com>
Subject: Re: [PATCH] device_cgroup: Roll back to original exceptions after
copy failure
On 2022/11/17 7:33, Paul Moore wrote:
> On Tue, Oct 25, 2022 at 7:02 AM Wang Weiyang <wangweiyang2@...wei.com> wrote:
>>
>> When add the 'a *:* rwm' entry to devcgroup A's whitelist, at first A's
>> exceptions will be cleaned and A's behavior is changed to
>> DEVCG_DEFAULT_ALLOW. Then parent's exceptions will be copyed to A's
>> whitelist. If copy failure occurs, just return leaving A to grant
>> permissions to all devices. And A may grant more permissions than
>> parent.
>>
>> Backup A's whitelist and recover original exceptions after copy
>> failure.
>>
>> Fixes: 4cef7299b478 ("device_cgroup: add proper checking when changing default behavior")
>> Signed-off-by: Wang Weiyang <wangweiyang2@...wei.com>
>> ---
>> security/device_cgroup.c | 33 +++++++++++++++++++++++++++++----
>> 1 file changed, 29 insertions(+), 4 deletions(-)
>
> Merged into lsm/next, but with a stable@...r tag. Normally I would
> merge something like this into lsm/stable-X.Y and send it up to Linus
> after a few days, but I'd really like this to spend some time in
> linux-next before going up to Linus.
Thanks Paul. This sounds fine.
Powered by blists - more mailing lists