All of lore.kernel.org
 help / color / mirror / Atom feed
* matchpathcon() for arbitrary subjects
@ 2006-12-12 19:21 Matt Anderson
  2006-12-12 19:40 ` Stephen Smalley
  0 siblings, 1 reply; 10+ messages in thread
From: Matt Anderson @ 2006-12-12 19:21 UTC (permalink / raw)
  To: selinux

I'm trying to get the CUPS print server to print to a file on the file
system.  In order to do this in a usable way I want to be able to query
the SELinux security server as to what the type of a file would be for a
given directory.  This is essentially what matchpathcon() does, and I
can get that to work.

The part I'm having trouble with is I'm making this call from cupsd with
the context of system_u:system_r:cupsd_t:SystemHigh and getting a
response for that type.  I'd like to make the call from that context,
but asking the server what the result would be for a given user's
context (such as user_u:user_r:user_lpr_t:SystemLow) is this possible
with some other existing function?

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

end of thread, other threads:[~2006-12-13 13:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 19:21 matchpathcon() for arbitrary subjects Matt Anderson
2006-12-12 19:40 ` Stephen Smalley
2006-12-12 20:24   ` Stephen Smalley
2006-12-12 20:46   ` Matt Anderson
2006-12-12 20:50     ` Stephen Smalley
2006-12-12 20:53       ` Stephen Smalley
2006-12-12 21:29         ` Matt Anderson
2006-12-12 21:41           ` Stephen Smalley
2006-12-12 22:45             ` Matt Anderson
2006-12-13 13:32               ` 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.