MIME-Version: 1.0 In-Reply-To: <1264617201.17372.2.camel@moss-pluto.epoch.ncsc.mil> References: <1264541641.19890.77.camel@moss-pluto.epoch.ncsc.mil> <1264542993.19890.88.camel@moss-pluto.epoch.ncsc.mil> <1264617201.17372.2.camel@moss-pluto.epoch.ncsc.mil> Date: Sat, 30 Jan 2010 12:03:18 +0330 Message-ID: Subject: Re: access decision API From: michel m To: Stephen Smalley Cc: selinux Content-Type: multipart/alternative; boundary=00504502d497a94d62047e5d9a1c Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov --00504502d497a94d62047e5d9a1c Content-Type: text/plain; charset=ISO-8859-1 as the last question, what I need, is to ask the security server if a data residing in userspace owning a context, can be written to a file in OS. does it make sense if I do it in this way : avc_has_perm(data_sid ,file_sid, SECLASS_FILE , null, null) I am confused, because I guessed using such a syntax means if a process is able to write to file, but here we are going to check if data can be *written *to file. if everything ok, how the action is specified, that is write? Regards. On Wed, Jan 27, 2010 at 10:03 PM, Stephen Smalley wrote: > On Wed, 2010-01-27 at 18:10 +0330, michel m wrote: > > thanks for guidance, but here I am with a question. what should be > > used as object class in avc_has_perm(3) when using it for > > inter-object. is there any sample for inter-object access decision? > > can it be null? > > > > on the other hand, access decision taken by avc_has_perm(), does it > > include MLS too? > > Yes, the avc_has_perm() or security_compute_av() decision takes into > account all policy models implemented within the security server, > including RBAC, TE, and MLS. > > -- > Stephen Smalley > National Security Agency > > --00504502d497a94d62047e5d9a1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable as the last question,
what I need, is to ask the security server if a d= ata residing in userspace owning a context, can be written to a file in OS.=
does it make sense if I do it in this way :
=A0 =A0 avc_has_perm(dat= a_sid=A0 ,file_sid,=A0 SECLASS_FILE , null, null)

I am confused, because I guessed using such a syntax means if a process= is able to write to file, but here we are going to check if data can be written to file.

if everything ok, how the action is spe= cified, that is write?
Regards.


On Wed, Jan 27, 2010 at 10:0= 3 PM, Stephen Smalley <sds@tycho.nsa.gov> wrote:
On Wed, 2010-01-27 at 18:10 +0330, michel m wrote:
> thanks for guidance, but here I am with a ques= tion. what should be
> used as object class in avc_has_perm(3) when using it for
> inter-object. is there any sample for inter-object access decision? > can it be null?
>
> on the other hand, access decision taken by avc_has_perm(), does it > include MLS too?

Yes, the avc_has_perm() or security_compute_av() decision takes into<= br> account all policy models implemented within the security server,
including RBAC, TE, and MLS.

--
Stephen Smalley
National Security Agency


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