All of lore.kernel.org
 help / color / mirror / Atom feed
* SELINUX_ERR using chcon to set a printer to Secret
@ 2006-09-28 18:59 Matt Anderson
  2006-09-28 19:33 ` Matt Anderson
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Anderson @ 2006-09-28 18:59 UTC (permalink / raw)
  To: selinux

I am trying to develop the policy needed for CUPS to do labeled
printing.  I've already got:

allow sysadm_t printer_device_t:chr_file { relabelfrom relabelto };

With that loaded however I still get the following message in my audit
log when I try to do:

[sysadm_r@orb dev]# chcon -l Secret /dev/lp0

type=SELINUX_ERR msg=audit(1159469257.883:92):
security_validate_transition:  denied for
oldcontext=system_u:object_r:printer_device_t:s0
newcontext=system_u:object_r:printer_device_t:s2
taskcontext=root:sysadm_r:sysadm_t:s0-s15:c0.c255 tclass=chr_file

Is this something that can be allowed in policy?  How can I specify that
I want to authorize sysadm_r to adjust the level of a printer device file?

thanks
-matt

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2006-09-29 19:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28 18:59 SELINUX_ERR using chcon to set a printer to Secret Matt Anderson
2006-09-28 19:33 ` Matt Anderson
2006-09-28 19:56   ` Christopher J. PeBenito
2006-09-29 17:51     ` Daniel J Walsh
2006-09-29 18:23       ` Christopher J. PeBenito
2006-09-29 19:13         ` Daniel J Walsh

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.