All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOT
@ 2020-10-27 23:50 Aleksa Sarai
  2020-10-27 23:50 ` [PATCH v2 1/2] " Aleksa Sarai
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Aleksa Sarai @ 2020-10-27 23:50 UTC (permalink / raw)
  To: Alexander Viro, Shuah Khan
  Cc: containers, linux-kernel, linux-kselftest, linux-fsdevel

This was an oversight in the original implementation, as it makes no
sense to specify both scoping flags to the same openat2(2) invocation
(before this patch, the result of such an invocation was equivalent to
RESOLVE_IN_ROOT being ignored).

This is a userspace-visible ABI change, but the only user of openat2(2)
at the moment is LXC which doesn't specify both flags and so no
userspace programs will break as a result.

Changelog:
  v2: Split patch so as to separate selftest changes. [Shuah Khan]
  v1: <https://lore.kernel.org/lkml/20201007103608.17349-1-cyphar@cyphar.com/>

Aleksa Sarai (2):
  openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOT
  selftests: openat2: add RESOLVE_ conflict test

 fs/open.c                                      | 4 ++++
 tools/testing/selftests/openat2/openat2_test.c | 8 +++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

-- 
2.29.0

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-02 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 23:50 [PATCH v2 0/2] openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOT Aleksa Sarai
2020-10-27 23:50 ` [PATCH v2 1/2] " Aleksa Sarai
2020-10-27 23:50 ` [PATCH v2 2/2] selftests: openat2: add RESOLVE_ conflict test Aleksa Sarai
2020-12-02 14:43 ` [PATCH v2 0/2] openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOT Christian Brauner
2020-12-02 14:43   ` Christian Brauner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.