Skip to contentSkip to conversation

SE-X

DISCUSSION Salvo Giuffrida 2 participants 4 messages Oct 15, 2006 – Oct 16, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

I saw that in the file "access_vectors", in the policy source directory, there are definitions related to X-Window objects (window, drawable, font, etc...). But, isn't the object manager supposed to handle only "low level" objects, like pipes, sockets, files, etc...? Thank you

_________________________________________________________________
Capitan Jack Sparrow ha bisogno del tuo aiuto..prendi il timone della Perla Nera! http://www.msnpiratesofthecaribbeangame.com/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 5 lines · Salvo Giuffrida

I saw that in the file "access_vectors", in the policy source directory, there are definitions related to X-Window objects (window, drawable, font, etc...). But, isn't the object manager supposed to handle only "low level" objects, like pipes, sockets, files, etc...?
Thank you

Object managers handle whatever kind of objects the app has. For example, a database would have row, table, column, etc. X has windows, cursors.

The kernel object managers manage low level things like files but userspace object managers give us the ability to refine that access to a more granular level. For example, SELinux in the kernel can only specify access on database files but if the database was an object manager you could use policy to specify in a more fine grained way what types can access pieces of that file.

--
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 22 lines

From: Joshua Brindle <[email protected]>
To: Salvo Giuffrida <[email protected]>
CC: [email protected]
Subject: Re: SE-X
Date: Sun, 15 Oct 2006 15:19:55 -0400

Quoted 2 lines · Salvo Giuffrida

I saw that in the file "access_vectors", in the policy source directory, there are definitions related to X-Window objects (window, drawable,

font,

Quoted 1 line

etc...). But, isn't the object manager supposed to handle only "low

level"

Quoted 2 lines

objects, like pipes, sockets, files, etc...?
Thank you

Object managers handle whatever kind of objects the app has. For example, a database would have row, table, column, etc. X has windows, cursors.

Quoted 7 lines

The kernel object managers manage low level things like files but userspace object managers give us the ability to refine that access to a more granular level. For example, SELinux in the kernel can only specify access on database files but if the database was an object manager you could use policy to specify in a more fine grained way what types can access pieces of that file.

Where can I find (if they exists) the code of this other userspace object managers?
Another thing, please: the interfaces of the .if files (in the sources of the policy), are expanded during compilation like the M4 macros of the old "example policy"? If so, how is it possible to referer and use them even after the compilation of the modules? Thanks

_________________________________________________________________
Capitan Jack Sparrow ha bisogno del tuo aiuto..prendi il timone della Perla Nera! http://www.msnpiratesofthecaribbeangame.com/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.

#3 lore raw
Quoted 26 lines

From: Salvo Giuffrida [mailto:[email protected]]

Quoted 6 lines

From: Joshua Brindle <[email protected]>
To: Salvo Giuffrida <[email protected]>
CC: [email protected]
Subject: Re: SE-X
Date: Sun, 15 Oct 2006 15:19:55 -0400

Quoted 6 lines
Quoted 3 lines · Salvo Giuffrida

I saw that in the file "access_vectors", in the policy source directory, there are definitions related to X-Window objects (window, drawable,

font,

Quoted 1 line

etc...). But, isn't the object manager supposed to handle

only "low

Quoted 6 lines

level"

Quoted 2 lines

objects, like pipes, sockets, files, etc...?
Thank you

Object managers handle whatever kind of objects the app has. For example, a database would have row, table, column, etc. X

has windows,

Quoted 4 lines

cursors.

The kernel object managers manage low level things like files but userspace object managers give us the ability to refine that

access to

Quoted 8 lines
Quoted 3 lines

a more granular level. For example, SELinux in the kernel can only specify access on database files but if the database was an object manager you could use policy to specify in a more fine

grained way what

Quoted 2 lines

types can access pieces of that file.

Where can I find (if they exists) the code of this other userspace object managers?

Use the source. Find dbus source, X is available in the xorg/server git tree on freedesktop.org in a branch called XACE-SELINUX. No database object manager exists as of right now but some are being worked on.

Quoted 6 lines

Another thing, please: the interfaces of the .if files (in the sources of the policy), are expanded during compilation like the M4 macros of the old "example policy"? If so, how is it possible to referer and use them even after the compilation of the modules?
Thanks

It isn't. they are installed to /usr/share/selinux/devel so that you can build out-of-tree refpolicy modules but the compiled modules do not use interfaces currenly.

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