Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • I think you understood it all right, it’s just that /proc/<P>/status shows always only the capabilities granted to P in the user namespace it is a member of, there is no automatic adjusting of what is shown if you query from a different namespace. Nevertheless, your process P does hold all the capabilities when operating on U'. You can see it if you turn that sleep into a kill of a process belonging to U’. In fact such a kill would kill even a process belonging to a hierarchically nested U’’ owned by euid 1001 of U, all regardless of what /proc/<P>/status states about capabilities Commented Aug 7, 2020 at 12:33