Skip to contentSkip to conversation

determining security level domination

DISCUSSION Matt Anderson 2 participants 2 messages Jun 16, 2006 SELinux security module

lore
Share & tools
lore
#0 lore 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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 4 lines · Matt Anderson

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.

Quoted 8 lines

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?

The goal in SELinux is to abstract away the specific security model behind general interfaces so that the model can change without needing to modify all of the enforcement code and so that we can support composite models like TE+MLS. Hence, we'd prefer to abstract away a traditional dominance check to instead be a SELinux permission check on the context pair. Then we can also apply TE controls as desired, as we might actually want to prevent a user in one domain from seeing jobs in another domain.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.