cupsd_t and sys_admin
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 needs that access. Also sys_rawio seems dubious.
virt_rw_all_image_chr_files(cupsd_t)
Also what is the above about?
Signature · 2 lines
My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/
Quoted 6 lines · Russell Coker
allow
cupsd_tself:capability { chowndac_overridedac_read_searchfowner fsetidipc_lockkill setgid setuidsys_adminsys_rawiosys_resourcesys_tty_config};From the refpolicy the above is the capabilities line for
cupsd_t. Why does
it havesys_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.
Quoted 1 line
needs that access. Also
sys_rawioseems dubious.
This came in from Dan in 2009, 8f3bddfbfdedf84838c0232a7f30b510ca673fa3.
Quoted 3 lines
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.
Signature · 1 line
Chris PeBenito