public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 216667] New: Self-contradictory description of inheritable capability set
@ 2022-11-06  3:04 bugzilla-daemon
  2023-05-19  2:11 ` [Bug 216667] " bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2022-11-06  3:04 UTC (permalink / raw)
  To: linux-man

https://bugzilla.kernel.org/show_bug.cgi?id=216667

            Bug ID: 216667
           Summary: Self-contradictory description of inheritable
                    capability set
           Product: Documentation
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
          Assignee: documentation_man-pages@kernel-bugs.osdl.org
          Reporter: robryk@gmail.com
        Regression: No

man capabilities says about the inheritable capset of a process:

> This is a set of capabilities preserved across an execve(2).  Inheritable
> capabilities remain inheritable when executing any program, (...)

I understand this to mean that any capability in the inheritable set will stay
inheritable across an execve (i.e. the inheritable set will not shrink across
execve).

The same manpage says in the next paragraph:

> Because inheritable capabilities are not generally preserved across execve(2)
> when running as a non-root user (...)

This seems to say the exact opposite of how I read the previous paragraph.

I am probably misunderstanding something basic here, but I am unlikely to be
the only person who does so, so I think it bears making this part clearer.

(When I try to look at the rest of the manpage to get more clarity, I fail:
 - the section that describes capability transformations across execve() seems
to say that inheritable capset stays constant,
 - the description of ambient capabilities implies that inheritable
capabilities differ from ambient insofar ambient ones are more "durable" across
execve().)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

end of thread, other threads:[~2023-05-25  0:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-06  3:04 [Bug 216667] New: Self-contradictory description of inheritable capability set bugzilla-daemon
2023-05-19  2:11 ` [Bug 216667] " bugzilla-daemon
2023-05-19  2:28 ` bugzilla-daemon
2023-05-19 13:26 ` bugzilla-daemon
2023-05-19 13:26 ` bugzilla-daemon
2023-05-25  0:55 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox