|
Message-ID: <alpine.LRH.2.20.1703012028110.9253@namei.org> Date: Wed, 1 Mar 2017 20:32:27 +1100 (AEDT) From: James Morris <jmorris@...ei.org> To: Mickaël Salaün <mic@...ikod.net> cc: linux-kernel@...r.kernel.org, Alexei Starovoitov <ast@...nel.org>, Andy Lutomirski <luto@...capital.net>, Arnaldo Carvalho de Melo <acme@...nel.org>, Casey Schaufler <casey@...aufler-ca.com>, Daniel Borkmann <daniel@...earbox.net>, David Drysdale <drysdale@...gle.com>, "David S . Miller" <davem@...emloft.net>, "Eric W . Biederman" <ebiederm@...ssion.com>, James Morris <james.l.morris@...cle.com>, Jann Horn <jann@...jh.net>, Jonathan Corbet <corbet@....net>, Matthew Garrett <mjg59@...f.ucam.org>, Michael Kerrisk <mtk.manpages@...il.com>, Kees Cook <keescook@...omium.org>, Paul Moore <paul@...l-moore.com>, Sargun Dhillon <sargun@...gun.me>, "Serge E . Hallyn" <serge@...lyn.com>, Shuah Khan <shuah@...nel.org>, Tejun Heo <tj@...nel.org>, Thomas Graf <tgraf@...g.ch>, Will Drewry <wad@...omium.org>, kernel-hardening@...ts.openwall.com, linux-api@...r.kernel.org, linux-security-module@...r.kernel.org, netdev@...r.kernel.org Subject: Re: [PATCH v5 03/10] bpf: Define handle_fs and add a new helper bpf_handle_fs_get_mode() On Wed, 22 Feb 2017, Mickaël Salaün wrote: > Add an eBPF function bpf_handle_fs_get_mode(handle_fs) to get the mode > of a an abstract object wrapping either a file, a dentry, a path, or an > inode. > > Changes since v4: > * use a file abstraction (handle) to wrap inode, dentry, path and file > structs Good to see these abstractions. As discussed at LPC, we need to ensure that we don't couple the Landlock API too closely with the LSM API, as the former is an ABI exposed to userland -- we don't want to lose the ability to change LSM internally due to breaking Landlock policies. > @@ -82,6 +87,8 @@ enum bpf_arg_type { > > ARG_PTR_TO_CTX, /* pointer to context */ > ARG_ANYTHING, /* any (initialized) argument is ok */ > + > + ARG_CONST_PTR_TO_HANDLE_FS, /* pointer to an abstract FS struct */ > }; Extraneous whitespace? -- James Morris <jmorris@...ei.org>
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.