Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 16 Nov 2020 22:36:17 +0100
From: Mickaël Salaün <>
To: Pavel Machek <>
Cc: James Morris <>, "Serge E . Hallyn" <>,
 Al Viro <>, Andy Lutomirski <>,
 Anton Ivanov <>, Arnd Bergmann
 <>, Casey Schaufler <>,
 Jann Horn <>, Jeff Dike <>,
 Jonathan Corbet <>, Kees Cook <>,
 Michael Kerrisk <>, Richard Weinberger
 <>, Shuah Khan <>,
 Vincent Dagonneau <>,,,,,,,,,, Mickaël Salaün
Subject: Re: [PATCH v22 01/12] landlock: Add object management

On 16/11/2020 22:26, Pavel Machek wrote:
> Hi!
>> A Landlock object enables to identify a kernel object (e.g. an inode).
>> A Landlock rule is a set of access rights allowed on an object.  Rules
>> are grouped in rulesets that may be tied to a set of processes (i.e.
>> subjects) to enforce a scoped access-control (i.e. a domain).
>> Because Landlock's goal is to empower any process (especially
>> unprivileged ones) to sandbox themselves, we cannot rely on a
>> system-wide object identification such as file extended attributes.
>> +	bool "Landlock support"
>> +	depends on SECURITY
>> +	select SECURITY_PATH
>> +	help
>> +	  Landlock is a safe sandboxing mechanism which enables processes to
>> +	  restrict themselves (and their future children) by gradually
>> +	  enforcing tailored access control policies.  A security policy is a
>> +	  set of access rights (e.g. open a file in read-only, make a
>> +	  directory, etc.) tied to a file hierarchy.  Such policy can be configured
>> +	  and enforced by any processes for themselves thanks to dedicated system
>> +	  calls: landlock_create_ruleset(), landlock_add_rule(), and
>> +	  landlock_enforce_ruleset_current().
> How does it interact with setuid binaries? Being able to exec passwd
> in a sandbox sounds like ... fun way to get root? :-).

It works like seccomp: if you run with CAP_SYS_ADMIN in the current
namespace, then SUID binaries may be allowed, otherwise if you use
PR_SET_NO_NEW_PRIVS, then executing a SUID binary is denied.

The 24th version is here:

> Best regards,
> 								Pavel

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.