Message ID | 20241105041326.18531-1-liwang@redhat.com |
---|---|
State | Superseded |
Headers | show |
Series | [1/2] lapi: Add new field socket scoping to landlock_ruleset_attr | expand |
On Tue, Nov 05, 2024 at 12:13:24PM +0800, Li Wang wrote: > Mainline kernel commit 21d52e295 ("landlock: Add abstract UNIX socket scoping") > introduces a new "scoped" member to the struct landlock_ruleset_attr. > > Signed-off-by: Li Wang <liwang@redhat.com> > --- > include/lapi/landlock.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/lapi/landlock.h b/include/lapi/landlock.h > index 211d171eb..5fb6d3755 100644 > --- a/include/lapi/landlock.h > +++ b/include/lapi/landlock.h > @@ -19,6 +19,7 @@ struct landlock_ruleset_attr > { > uint64_t handled_access_fs; > uint64_t handled_access_net; > + uint64_t scoped; > }; > #endif Reviewed-by: Wei Gao <wegao@suse.com> > > -- > 2.47.0 > > > -- > Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Li, please check my latest landlock network v2 testing suite, because the paradigm will change due to incompatibility between ABI v1 and v4 of landlock implementation. We need to simplify the way we fallback landlock_ruleset_attr. Andrea On 11/5/24 05:13, Li Wang wrote: > Mainline kernel commit 21d52e295 ("landlock: Add abstract UNIX socket scoping") > introduces a new "scoped" member to the struct landlock_ruleset_attr. > > Signed-off-by: Li Wang <liwang@redhat.com> > --- > include/lapi/landlock.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/lapi/landlock.h b/include/lapi/landlock.h > index 211d171eb..5fb6d3755 100644 > --- a/include/lapi/landlock.h > +++ b/include/lapi/landlock.h > @@ -19,6 +19,7 @@ struct landlock_ruleset_attr > { > uint64_t handled_access_fs; > uint64_t handled_access_net; > + uint64_t scoped; > }; > #endif >
diff --git a/include/lapi/landlock.h b/include/lapi/landlock.h index 211d171eb..5fb6d3755 100644 --- a/include/lapi/landlock.h +++ b/include/lapi/landlock.h @@ -19,6 +19,7 @@ struct landlock_ruleset_attr { uint64_t handled_access_fs; uint64_t handled_access_net; + uint64_t scoped; }; #endif
Mainline kernel commit 21d52e295 ("landlock: Add abstract UNIX socket scoping") introduces a new "scoped" member to the struct landlock_ruleset_attr. Signed-off-by: Li Wang <liwang@redhat.com> --- include/lapi/landlock.h | 1 + 1 file changed, 1 insertion(+)