linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] unshare.2: Add note about potential capabilities confusion
@ 2022-09-06  9:01 Patrick Reader
  2022-09-06 11:50 ` Alejandro Colomar
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Reader @ 2022-09-06  9:01 UTC (permalink / raw)
  To: linux-man; +Cc: alx.manpages

See https://bugzilla.kernel.org/show_bug.cgi?id=216215 for context.

I know nothing about groff formatting, so what I wrote here is based on 
my inference from reading the existing source. If it's wrong, I apologise.


Signed-off-by: Patrick Reader <_@pxeger.com>
---
  man/man2/unshare.2 | 10 ++++++++++
  1 file changed, 10 insertions(+)

diff --git a/man/man2/unshare.2 b/man/man2/unshare.2
index e72464950..851129022 100644
--- a/man/man2/unshare.2
+++ b/man/man2/unshare.2
@@ -461,6 +461,16 @@ Such functionality may be added in the future, if 
required.
  .\"be incrementally added to unshare without affecting legacy
  .\"applications using unshare.
  .\"
+.PP
+Creating all kinds of namespace, except user namespaces, requires the
+.B CAP_SYS_ADMIN
+capability. However, since creating a user namespace automatically 
confers a
+full set of capabilities, creating both a user namespace and any other type
+of namespace in the same
+.BR unshare ()
+call does not require the
+.B CAP_SYS_ADMIN
+capability in the original namespace.
  .SH EXAMPLES
  The program below provides a simple implementation of the
  .BR unshare (1)
-- 
2.37.3

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

end of thread, other threads:[~2022-09-06 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06  9:01 [patch] unshare.2: Add note about potential capabilities confusion Patrick Reader
2022-09-06 11:50 ` Alejandro Colomar
2022-09-06 11:58   ` Patrick Reader
2022-09-06 12:03     ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).