From: "Rahul Sandhu" <nvraxn@gmail.com>
To: <selinux@vger.kernel.org>
Subject: confusion regarding the setcap permission
Date: Tue, 14 Oct 2025 05:13:28 +0100 [thread overview]
Message-ID: <DDHR3Y151ZWK.3DNFX6HD9BW9N@gmail.com> (raw)
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
next reply other threads:[~2025-10-14 4:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-14 4:13 Rahul Sandhu [this message]
2025-10-14 12:33 ` confusion regarding the setcap permission Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DDHR3Y151ZWK.3DNFX6HD9BW9N@gmail.com \
--to=nvraxn@gmail.com \
--cc=selinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).