From: Matt Anderson <mra@hp.com>
To: selinux@tycho.nsa.gov
Subject: matchpathcon() for arbitrary subjects
Date: Tue, 12 Dec 2006 14:21:41 -0500 [thread overview]
Message-ID: <457F0145.7020305@hp.com> (raw)
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.
next reply other threads:[~2006-12-12 19:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 19:21 Matt Anderson [this message]
2006-12-12 19:40 ` matchpathcon() for arbitrary subjects 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
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=457F0145.7020305@hp.com \
--to=mra@hp.com \
--cc=selinux@tycho.nsa.gov \
/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.