From: Chris PeBenito <pebenito@ieee.org>
To: Russell Coker <russell@coker.com.au>,
SELinux Reference Policy mailing list
<selinux-refpolicy@vger.kernel.org>
Subject: Re: cupsd_t and sys_admin
Date: Mon, 7 Oct 2024 15:35:57 -0400 [thread overview]
Message-ID: <3ebc1ec3-4d2b-473b-a91d-b4772bdc55b4@ieee.org> (raw)
In-Reply-To: <22446657.EfDdHjke4D@cupcakke>
On 10/5/2024 5:26 AM, Russell Coker wrote:
> allow cupsd_t self:capability { chown dac_override dac_read_search fowner
> fsetid ipc_lock kill setgid setuid sys_admin sys_rawio sys_resource
> sys_tty_config };
>
> From the refpolicy the above is the capabilities line for cupsd_t. Why does
> it have sys_admin? I don't think it has a legitimate need to do anything that
Nothing I can tell you beyond what is in the commit history. The cap
has been there since it was added to refpolicy, so it probably was in
the old NSA example policy. See
ef5ca0fb79191e6af897c58d97977e919b34ec17 back in 2005.
> needs that access. Also sys_rawio seems dubious.
This came in from Dan in 2009, 8f3bddfbfdedf84838c0232a7f30b510ca673fa3.
> virt_rw_all_image_chr_files(cupsd_t)
>
> Also what is the above about?
This came while cups was in the contrib git submodule in 2012,
ba518eba315d79afb9df2f19300dc2d18005e5f8.
If you share a printer device, libvirt relabels it to the image file type.
--
Chris PeBenito
prev parent reply other threads:[~2024-10-07 19:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-05 9:26 cupsd_t and sys_admin Russell Coker
2024-10-07 19:35 ` Chris PeBenito [this message]
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=3ebc1ec3-4d2b-473b-a91d-b4772bdc55b4@ieee.org \
--to=pebenito@ieee.org \
--cc=russell@coker.com.au \
--cc=selinux-refpolicy@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.