Skip to contentSkip to conversation

Trouble with gconf and Thunar

DISCUSSION Bradley Chapman 2 participants 2 messages Nov 17, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

After doing a bit of searching through the mail archive I came across a new gconf policy by james Carter that I wanted to use due to issues with the existing policy on Debian unstable. After installing it though I'm confronted with the same errors as before:

audit(1163697082.507:93): avc: denied { read } for pid=1874 comm="gconfd-2" name="path" dev=sda6 ino=28650 scontext=staff_u:staff_r:staff_t tcontext=system_u:object_r:gconf_etc_t tclass=file audit(1163697082.559:94): avc: denied { write } for pid=1874 comm="gconfd-2" name=".gconf" dev=sda7 ino=16353 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=dir audit(1163697082.559:95): avc: denied { add_name } for pid=1874 comm="gconfd-2" name=".testing.writeability" scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=dir audit(1163697082.559:96): avc: denied { create } for pid=1874 comm="gconfd-2" name=".testing.writeability" scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.567:97): avc: denied { remove_name } for pid=1874 comm="gconfd-2" name=".testing.writeability" dev=sda7 ino=282074 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=dir audit(1163697082.567:98): avc: denied { unlink } for pid=1874 comm="gconfd-2" name=".testing.writeability" dev=sda7 ino=282074 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.603:99): avc: denied { read } for pid=1874 comm="gconfd-2" name="saved_state" dev=sda7 ino=24530 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.607:100): avc: denied { append } for pid=1874 comm="gconfd-2" name="saved_state" dev=sda7 ino=24530 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.719:101): avc: denied { read } for pid=1874 comm="gconfd-2" name="%gconf-tree.xml" dev=sda6 ino=147170 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:gconf_etc_t tclass=file

The fact the gconfd-2 is running in the staff_u:staff_r:staff_t domain implies that it isn't labelled correctly:

ls --context /usr/lib/libgconf2-4/gconfd-2
-rwxr-xr-x root root system_u:object_r:lib_t
/usr/lib/libgconf2-4/gconfd-2

So what label do I need to assign to bring the gconf-2 executable in line with Mr. Carter's policy?

Also, does anyone have a policy for the Thunar Filesystem Manager?

Brad

Signature · 6 lines
CONTROL YOUR TABS: https://addons.mozilla.org/extensions/158

--
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 42 lines · Bradley Chapman

After doing a bit of searching through the mail archive I came across a new gconf policy by james Carter that I wanted to use due to issues with the existing policy on Debian unstable. After installing it though I'm confronted with the same errors as before:

audit(1163697082.507:93): avc: denied { read } for pid=1874 comm="gconfd-2" name="path" dev=sda6 ino=28650 scontext=staff_u:staff_r:staff_t tcontext=system_u:object_r:gconf_etc_t tclass=file audit(1163697082.559:94): avc: denied { write } for pid=1874 comm="gconfd-2" name=".gconf" dev=sda7 ino=16353 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=dir audit(1163697082.559:95): avc: denied { add_name } for pid=1874 comm="gconfd-2" name=".testing.writeability" scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=dir audit(1163697082.559:96): avc: denied { create } for pid=1874 comm="gconfd-2" name=".testing.writeability" scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.567:97): avc: denied { remove_name } for pid=1874 comm="gconfd-2" name=".testing.writeability" dev=sda7 ino=282074 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=dir audit(1163697082.567:98): avc: denied { unlink } for pid=1874 comm="gconfd-2" name=".testing.writeability" dev=sda7 ino=282074 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.603:99): avc: denied { read } for pid=1874 comm="gconfd-2" name="saved_state" dev=sda7 ino=24530 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.607:100): avc: denied { append } for pid=1874 comm="gconfd-2" name="saved_state" dev=sda7 ino=24530 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:staff_gconf_home_t tclass=file audit(1163697082.719:101): avc: denied { read } for pid=1874 comm="gconfd-2" name="%gconf-tree.xml" dev=sda6 ino=147170 scontext=staff_u:staff_r:staff_t tcontext=staff_u:object_r:gconf_etc_t tclass=file

Quoted 7 lines

The fact the gconfd-2 is running in the staff_u:staff_r:staff_t domain implies that it isn't labelled correctly:

ls --context /usr/lib/libgconf2-4/gconfd-2
-rwxr-xr-x root root system_u:object_r:lib_t
/usr/lib/libgconf2-4/gconfd-2

This should be labeled as system_u:object_r:gconfd_exec_t The problem is that in Fedora gconfd-2 is at /usr/libexec/gconfd-2. Your gconf.fc file needs to have /usr/lib/libgconf2-4/gconfd-2 instead of /usr/libexec/gconfd-2.

Quoted 3 lines

So what label do I need to assign to bring the gconf-2 executable in line with Mr. Carter's policy?

It should be labeled as staff_u:staff_r:staff_gconfd_t and it will be if the executable is labeled correctly.

Quoted 3 lines

Also, does anyone have a policy for the Thunar Filesystem Manager?

Brad

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