From: Matt Anderson <mra@hp.com>
To: selinux@tycho.nsa.gov
Subject: determining security level domination
Date: Thu, 15 Jun 2006 20:31:33 -0400 [thread overview]
Message-ID: <4491FBE5.10902@hp.com> (raw)
I'm working on lpq and I need to determine if a user can see a job in
the queue. By this time the user's context is known, and all the jobs
in the queue have a context associated with them.
It seems like avc_has_perm_noaudit() is close to what I need, but I'm
not sure. The main problem I see with that is avc_has_perm may fail
based on user, role, or type, which I don't think I'm concerned with.
Conceivably I could get around this by mangling one of the contexts so
that I was only comparing levels and categories, but that doesn't sound
like a good idea at all.
Is there some function I've missed that does something like this?
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.
next reply other threads:[~2006-06-16 0:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-16 0:31 Matt Anderson [this message]
2006-06-16 12:12 ` determining security level domination 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=4491FBE5.10902@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.