public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/31784] New: RFE: ability to control ambient caps in posix_spawn/pidfd_spawn
@ 2024-05-22  8:46 mzglcbz at 0pointer dot net
  2024-05-22  9:43 ` [Bug libc/31784] " fweimer at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mzglcbz at 0pointer dot net @ 2024-05-22  8:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=31784

            Bug ID: 31784
           Summary: RFE: ability to control ambient caps in
                    posix_spawn/pidfd_spawn
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: mzglcbz at 0pointer dot net
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

systemd uses pidfd_spawn/posix_spawn these days for process invocation. But
there's one more thing we are missing: we want to pass ambient capabilities to
invoked processes. This is a bit messy right now, because we have to raise the
ambient caps *before* we invoke pidfd_spawn/posix_spawn where they will effect
the original process, even if we really don't want that. We'd much rather have
them only effect the invoked process, i.e. raise between the clone() + execev()
in the child.

Related to this: https://github.com/systemd/systemd/pull/32937

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-05-23 13:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-22  8:46 [Bug libc/31784] New: RFE: ability to control ambient caps in posix_spawn/pidfd_spawn mzglcbz at 0pointer dot net
2024-05-22  9:43 ` [Bug libc/31784] " fweimer at redhat dot com
2024-05-22  9:55 ` mzglcbz at 0pointer dot net
2024-05-22 16:00 ` stlman at poczta dot fm
2024-05-22 17:23 ` fweimer at redhat dot com
2024-05-22 21:12 ` mzglcbz at 0pointer dot net
2024-05-22 21:24 ` fweimer at redhat dot com
2024-05-23 12:31 ` adhemerval.zanella at linaro dot org
2024-05-23 13:52 ` mzglcbz at 0pointer dot net

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 read-only IMAP folder(s) and NNTP newsgroup(s).