Skip to contentSkip to conversation

how to enable gconf(arole_dbus_t errors) and all of the gnome goodies

DISCUSSION Justin P. Mattock 2 participants 5 messages May 8, 2009 – May 11, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

with the latest policy:
I'm wondering what would be the best way to
allow gconf,evolution,nautilus,etc..

If I start any of these during boot I'll
get system_dbus_t(which gets allowed)
but if I start evolution, nautilus, etc..
normally once Ive booted up I get an error
with checkpolicy.(due to arole_dbus_t instead of
system_dbus_t)

Should I try and compile these programs
without orbit support(if possible), gconf support
and dbus support?

is there a boolean that I'm missing?

Justin P. Mattock

--
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 11 lines · Justin P. Mattock

with the latest policy:
I'm wondering what would be the best way to allow gconf,evolution,nautilus,etc..

If I start any of these during boot I'll get system_dbus_t(which gets allowed) but if I start evolution, nautilus, etc.. normally once Ive booted up I get an error with checkpolicy.(due to arole_dbus_t instead of system_dbus_t)

Quoted 5 lines

Should I try and compile these programs without orbit support(if possible), gconf support and dbus support?

is there a boolean that I'm missing?

Can you provide the exact error messages?

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#2 lore raw
Quoted 16 lines · Christopher J. PeBenito
Quoted 15 lines · Justin P. Mattock

with the latest policy:
I'm wondering what would be the best way to allow gconf,evolution,nautilus,etc..

If I start any of these during boot I'll get system_dbus_t(which gets allowed) but if I start evolution, nautilus, etc.. normally once Ive booted up I get an error with checkpolicy.(due to arole_dbus_t instead of system_dbus_t)

Should I try and compile these programs without orbit support(if possible), gconf support and dbus support?

Quoted 10 lines
Quoted 1 line

is there a boolean that I'm missing?

Can you provide the exact error messages?

--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150

If I start the system, and gather avc's for(example) gnom-volume-control
(some of them below, then write them into the policy)

allow user_dbusd_t default_t:chr_file { read write getattr open ioctl }; allow user_dbusd_t gconf_etc_t:dir { search getattr };
allow user_dbusd_t gconf_home_t:dir { write search read remove_name open getattr add_name };
allow user_dbusd_t gconf_home_t:file { rename setattr read create write getattr unlink open append };
allow user_dbusd_t gconfd_exec_t:file { read execute open execute_no_trans }; allow user_dbusd_t mozilla_t:unix_stream_socket connectto;
allow user_dbusd_t self:process getsched;

the error is this:

m4 -D enable_mcs -D distro_redhat -D mls_num_sens=16 -D mls_num_cats=256 -D mcs_num_cats=256 -D hide_broken_symptoms -D self_contained_policy policy/support/file_patterns.spt policy/support/ipc_patterns.spt policy/support/loadable_module.spt policy/support/misc_macros.spt policy/support/misc_patterns.spt policy/support/mls_mcs_macros.spt policy/support/obj_perm_sets.spt tmp/generated_definitions.conf policy/global_booleans policy/global_tunables > tmp/global_bools.conf
Creating mcs policy.conf
cat tmp/pre_te_files.conf tmp/all_attrs_types.conf tmp/global_bools.conf tmp/only_te_rules.conf tmp/all_post.conf > policy.conf
Compiling mcs policy.22
/usr/bin/checkpolicy -M -c 22 -U deny policy.conf -o policy.22 /usr/bin/checkpolicy: loading policy configuration from policy.conf policy/modules/services/xserver.te":1042:ERROR 'type user_dbusd_t is not within scope' at token ';' on line 2597865:

allow user_dbusd_t default_t:chr_file { read write getattr open ioctl };
checkpolicy: error(s) encountered while parsing configuration
make: *** [policy.22] Error 1

It's the whole dbus sends and receive info from the home directory then create a directory in /tmp (orbit) transaction
that is happening.
I can try and start these programs during init,
(since system_dbusd_t seems to only be allowed)
but running evolution as root just seems a bit
too much, as well as any other app that just needs to be
ran normally.

Signature · 1 line
Justin P. Mattock
#3 lore raw
Quoted 56 lines · Justin Mattock
Quoted 12 lines · Christopher J. PeBenito
Quoted 11 lines · Justin P. Mattock

with the latest policy:
I'm wondering what would be the best way to allow gconf,evolution,nautilus,etc..

If I start any of these during boot I'll get system_dbus_t(which gets allowed) but if I start evolution, nautilus, etc.. normally once Ive booted up I get an error with checkpolicy.(due to arole_dbus_t instead of system_dbus_t)

Quoted 8 lines
Quoted 5 lines

Should I try and compile these programs without orbit support(if possible), gconf support and dbus support?

is there a boolean that I'm missing?

Can you provide the exact error messages?

If I start the system, and gather avc's for(example) gnom-volume-control
(some of them below, then write them into the policy)

allow user_dbusd_t default_t:chr_file { read write getattr open ioctl }; allow user_dbusd_t gconf_etc_t:dir { search getattr };
allow user_dbusd_t gconf_home_t:dir { write search read remove_name open getattr add_name };
allow user_dbusd_t gconf_home_t:file { rename setattr read create write getattr unlink open append };
allow user_dbusd_t gconfd_exec_t:file { read execute open execute_no_trans }; allow user_dbusd_t mozilla_t:unix_stream_socket connectto;
allow user_dbusd_t self:process getsched;

the error is this:

m4 -D enable_mcs -D distro_redhat -D mls_num_sens=16 -D mls_num_cats=256 -D mcs_num_cats=256 -D hide_broken_symptoms -D self_contained_policy policy/support/file_patterns.spt policy/support/ipc_patterns.spt policy/support/loadable_module.spt policy/support/misc_macros.spt policy/support/misc_patterns.spt policy/support/mls_mcs_macros.spt policy/support/obj_perm_sets.spt tmp/generated_definitions.conf policy/global_booleans policy/global_tunables > tmp/global_bools.conf
Creating mcs policy.conf
cat tmp/pre_te_files.conf tmp/all_attrs_types.conf tmp/global_bools.conf tmp/only_te_rules.conf tmp/all_post.conf > policy.conf
Compiling mcs policy.22
/usr/bin/checkpolicy -M -c 22 -U deny policy.conf -o policy.22 /usr/bin/checkpolicy: loading policy configuration from policy.conf policy/modules/services/xserver.te":1042:ERROR 'type user_dbusd_t is not within scope' at token ';' on line 2597865:

Quoted 3 lines

allow user_dbusd_t default_t:chr_file { read write getattr open ioctl };
checkpolicy: error(s) encountered while parsing configuration
make: *** [policy.22] Error 1

user_dbusd_t is optionally declared, and the invocation is in policy/modules/roles/unprivuser.te line 37 (in current refpolicy trunk). You would have to put rules in that optional, otherwise the rule is out of scope.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#4 lore raw
Quoted 57 lines · Christopher J. PeBenito
Quoted 56 lines · Justin Mattock
Quoted 12 lines · Christopher J. PeBenito
Quoted 11 lines · Justin P. Mattock

with the latest policy:
I'm wondering what would be the best way to allow gconf,evolution,nautilus,etc..

If I start any of these during boot I'll get system_dbus_t(which gets allowed) but if I start evolution, nautilus, etc.. normally once Ive booted up I get an error with checkpolicy.(due to arole_dbus_t instead of system_dbus_t)

Quoted 8 lines
Quoted 5 lines

Should I try and compile these programs without orbit support(if possible), gconf support and dbus support?

is there a boolean that I'm missing?

Can you provide the exact error messages?

If I start the system, and gather avc's for(example) gnom-volume-control
(some of them below, then write them into the policy)

allow user_dbusd_t default_t:chr_file { read write getattr open ioctl }; allow user_dbusd_t gconf_etc_t:dir { search getattr };
allow user_dbusd_t gconf_home_t:dir { write search read remove_name open getattr add_name };
allow user_dbusd_t gconf_home_t:file { rename setattr read create write getattr unlink open append };
allow user_dbusd_t gconfd_exec_t:file { read execute open execute_no_trans }; allow user_dbusd_t mozilla_t:unix_stream_socket connectto;
allow user_dbusd_t self:process getsched;

the error is this:

m4 -D enable_mcs -D distro_redhat -D mls_num_sens=16 -D mls_num_cats=256 -D mcs_num_cats=256 -D hide_broken_symptoms -D self_contained_policy policy/support/file_patterns.spt policy/support/ipc_patterns.spt policy/support/loadable_module.spt policy/support/misc_macros.spt policy/support/misc_patterns.spt policy/support/mls_mcs_macros.spt policy/support/obj_perm_sets.spt tmp/generated_definitions.conf policy/global_booleans policy/global_tunables > tmp/global_bools.conf
Creating mcs policy.conf
cat tmp/pre_te_files.conf tmp/all_attrs_types.conf tmp/global_bools.conf tmp/only_te_rules.conf tmp/all_post.conf > policy.conf
Compiling mcs policy.22
/usr/bin/checkpolicy -M -c 22 -U deny policy.conf -o policy.22 /usr/bin/checkpolicy: loading policy configuration from policy.conf policy/modules/services/xserver.te":1042:ERROR 'type user_dbusd_t is not within scope' at token ';' on line 2597865:

Quoted 9 lines
Quoted 3 lines

allow user_dbusd_t default_t:chr_file { read write getattr open ioctl };
checkpolicy: error(s) encountered while parsing configuration
make: *** [policy.22] Error 1

user_dbusd_t is optionally declared, and the invocation is in policy/modules/roles/unprivuser.te line 37 (in current refpolicy trunk). You would have to put rules in that optional, otherwise the rule is out of scope.

Cool, I'll have a look.
(sorry for bringing this up again,
I've been going crazy with this for a while)

As for the policy, been running it for a while
(without any gnome support) but then decided to
add some sugar and spice to the system.

Justin P. Mattock

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