All of lore.kernel.org
 help / color / mirror / Atom feed
* Possible bug with fd class?
@ 2009-06-16  4:48 Jason Johnson
  2009-06-16  5:18 ` KaiGai Kohei
  0 siblings, 1 reply; 10+ messages in thread
From: Jason Johnson @ 2009-06-16  4:48 UTC (permalink / raw)
  To: SE-Linux

Hello all,

I am using SELinux on the latest debian.  It has a few access
violations here and there, but the one that concerns me most is:

kernel: [1298522.518701] type=1400 audit(1245126419.780:229): avc:
denied  { use } for  pid=29944 comm="syslog-ng" path="/dev/null"
dev=tmpfs ino=634 scontext=system_u:system_r:syslogd_t:s0
tcontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tclass=fd


/dev/null is:

# semanage fcontext -l|grep null_device_t
/dev/null                                          character device
system_u:object_r:null_device_t:s0
/dev/full                                          character device
system_u:object_r:null_device_t:s0


I don't see a way with semanage to set anything about class "fd" and
sesearch didn't seem to turn anything up.  How could /dev/null fd be
in context logrotate_t?

I could just add an allow for this on a local module, but my concern
is: can a user program just set arbitrary fd's to it's own target
context as well?

I appreciate any insight you all can give.

Sincerely,
Jason

--
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] 10+ messages in thread

end of thread, other threads:[~2009-06-18 12:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-16  4:48 Possible bug with fd class? Jason Johnson
2009-06-16  5:18 ` KaiGai Kohei
2009-06-16 17:31   ` Jason Johnson
2009-06-16 20:01     ` Stephen Smalley
2009-06-16 21:13       ` Jason Johnson
2009-06-17 12:26         ` Stephen Smalley
2009-06-17 18:28           ` Jason Johnson
2009-06-17 19:13             ` Stephen Smalley
2009-06-17 19:17               ` Stephen Smalley
     [not found]               ` <aa22f0200906172153n2c67abcj1309a76208c5b96e@mail.gmail.com>
2009-06-18 12:48                 ` Stephen Smalley

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.