Skip to contentSkip to conversation

Gconf application

DISCUSSION shaunak saha 2 participants 2 messages Aug 8, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi all,

I m new to selinux.I am not sure I am posing this question correctly, so please view it
from the perspective of where I am trying to get to.

I need to protect Gconf applications.I have two client applications running in different domains.From the policy file one applcation should be allowed to do operations in GConf while other should only be able to read from Gconf.
For this i m planning to follow the NSA whitepaper i found from net(
http://www.nsa.gov/seLinux/papers/gconf07-abs.cfm) and creating a userspace object manager.Is that the correct approach or there is any other way to make selinux checks for gconf applications?
FYI:I m using gconf-dbus,not the orbit gconf.

Thanks in advance,

Thanks and Regards,
Shaunak

#1 lore raw
Quoted 16 lines · shaunak saha

Hi all,

I m new to selinux.I am not sure I am posing this question correctly, so please view it
from the perspective of where I am trying to get to.

I need to protect Gconf applications.I have two client applications running in different domains.From the policy file one applcation should be allowed to do operations in GConf while other should only be able to read from Gconf.
For this i m planning to follow the NSA whitepaper i found from net(http://www.nsa.gov/seLinux/papers/gconf07-abs.cfm) and creating a userspace
object manager.Is that the correct approach or there is any other way to make selinux checks for gconf applications?

Quoted 2 lines

FYI:I m using gconf-dbus,not the orbit gconf.

That work is old. I hope to update it someday, but it will take some work for you to update it to the latest GConf. The patch is a little big to send to the list, but I can send it to you, or make it available somewhere if there is interest from others as well.

I think that you have to make gcond a userspace object manager to do what you want. You want both applications to be able to send requests to gconfd and to receive replies, so they both must be able to send and receive messages to gconfd through D-Bus. While D-Bus allows control over who can use a bus name, and it will control the sending and receiving of messages between the two processes, I don't think that you can use it to control access to specific methods. You would need it to prevent the one application from using the "set" method (or whatever it is called).

One good thing about using D-Bus though is that you can have gconfd use the "GetConnectionSELinuxSecurityContext" method to get the client's security context from D-Bus.

Signature · 8 lines
James Carter <[email protected]>
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.