Skip to contentSkip to conversation

security_compute_av

DISCUSSION Salvo Giuffrida 2 participants 4 messages Oct 11, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

If the security_compute_av function is called by the AVC when a cache miss occurs, then how is first contacted the AVC by the object manager? Which function is used? And the security_compute_create, by who is called? The object manager on creation of new objects?
Thanks

_________________________________________________________________
Bolletta del telefono pesante? Risparmia con il nuovo Messenger http://imagine-msn.com/messenger/launch80/?locale=it-it

--
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 3 lines · Salvo Giuffrida

If the security_compute_av function is called by the AVC when a cache miss occurs, then how is first contacted the AVC by the object manager? Which function is used?

avc_has_perm() is the permission checking interface between the object manager and the AVC.

Quoted 2 lines

And the security_compute_create, by who is called? The object manager on creation of new objects?

Yes. Within the kernel, that is security_transition_sid. security_compute_create is just the userland API to it.

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.
#2 lore raw
Quoted 9 lines

From: Stephen Smalley <[email protected]>
To: Salvo Giuffrida <[email protected]>
CC: [email protected]
Subject: Re: security_compute_av
Date: Wed, 11 Oct 2006 08:11:53 -0400

Quoted 8 lines
Quoted 1 line · Salvo Giuffrida

If the security_compute_av function is called by the AVC when a cache

miss

Quoted 2 lines

occurs, then how is first contacted the AVC by the object manager? Which function is used?

avc_has_perm() is the permission checking interface between the object manager and the AVC.

I saw that is uses SIDs as arguments. Shouldn't it use security_context_t objects?

_________________________________________________________________
Scopri il nuovo Windows Live Messenger! http://get.live.com/messenger/features

--
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.

#3 lore raw
Quoted 10 lines · Salvo Giuffrida
Quoted 10 lines

From: Stephen Smalley <[email protected]>
To: Salvo Giuffrida <[email protected]>
CC: [email protected]
Subject: Re: security_compute_av
Date: Wed, 11 Oct 2006 08:11:53 -0400

Quoted 1 line · Salvo Giuffrida

If the security_compute_av function is called by the AVC when a cache

Quoted 8 lines
Quoted 6 lines

miss

Quoted 2 lines

occurs, then how is first contacted the AVC by the object manager? Which function is used?

avc_has_perm() is the permission checking interface between the object manager and the AVC.

I saw that is uses SIDs as arguments. Shouldn't it use security_context_t objects?

No.

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.