[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <787e7546-25b9-4e32-6560-b6907cdd6401@digikod.net>
Date: Mon, 28 Nov 2022 21:25:31 +0100
From: Mickaël Salaün <mic@...ikod.net>
To: "Konstantin Meskhidze (A)" <konstantin.meskhidze@...wei.com>
Cc: artem.kuzin@...wei.com, gnoack3000@...il.com,
willemdebruijn.kernel@...il.com,
linux-security-module@...r.kernel.org, netdev@...r.kernel.org,
netfilter-devel@...r.kernel.org
Subject: Re: [PATCH] landlock: Allow filesystem layout changes for domains
without such rule type
On 28/11/2022 04:02, Konstantin Meskhidze (A) wrote:
>
>
> 11/17/2022 9:55 PM, Mickaël Salaün пишет:
>> Allow mount point and root directory changes when there is no filesystem
>> rule tied to the current Landlock domain. This doesn't change anything
>> for now because a domain must have at least a (filesystem) rule, but
>> this will change when other rule types will come. For instance, a
>> domain only restricting the network should have no impact on filesystem
>> restrictions.
>>
>> Add a new get_current_fs_domain() helper to quickly check filesystem
>> rule existence for all filesystem LSM hooks.
>
> Ok. I got it.
> Do I need also to add a new network helper:
> like landlock_get_raw_net_access_mask?
A get_raw helper would not be useful if there is not network access
initially denied (like for FS_REFER).
Powered by blists - more mailing lists