selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* confusion regarding the setcap permission
@ 2025-10-14  4:13 Rahul Sandhu
  2025-10-14 12:33 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Rahul Sandhu @ 2025-10-14  4:13 UTC (permalink / raw)
  To: selinux

Hi,

I'm looking at the class process' permission setcap, and I'm a bit
confused as to what it actually grants. The SELinux Notebook describes
setcap as follows:
> Set Linux capabilities of process.
However I'm not really sure what's going on here:
1. What syscall is actually used to set capabilities of a process?
2. What processes is it allowed to set? Assuming that the process is
   started with dac_override (granted both on its executable file and
   the SELinux domain it runs in), would setcap allow it to only set
   dac_override? Would it allow it to set other permissions?

Thanks,
Rahul

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

end of thread, other threads:[~2025-10-14 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14  4:13 confusion regarding the setcap permission Rahul Sandhu
2025-10-14 12:33 ` Stephen Smalley

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).