Skip to contentSkip to conversation

Latest diffs

DISCUSSION Christopher J. PeBenito 1 participant 1 message Jun 7, 2006 1 message not in the archive SELinux security module

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Daniel J Walsh

A change to the glibc interface is causing lots of domains to want to read the routing database.

We should figure out what this is related to, in case it fits better in an existing interface (my wild guess is sysnet_dns_name_resolve()).

Quoted 1 line

Add wine definition in picasa

Then we can get Google to stop suggesting that FC users switch to permissive to use it :)

Quoted 1 line

Add oprofilefs_t

moved to filesystem

Quoted 1 line

More changes to get bluetooth to work with startx

Merged the write socket interface into the stream connect interface.

Quoted 1 line

Lots of changes for nss_ldap + Reading of certs

Perhaps these domains should be using auth_use_nsswitch(), and reading of certs should be added to that interface?

Quoted 1 line

pegasus_domtrans added for uncofined_domain

Why is this needed? Its a service, and the transition to initrc should take care of restarts. Related comment farther down.

Quoted 1 line

Lots of pegasus fixes to make it work correctly and pass self test.

See comments below.

Quoted 8 lines
(quoted diff) +5 -1
-init_domain(consoletype_t,consoletype_exec_t)
+#dont transition from initrc
+#init_domain(consoletype_t,consoletype_exec_t)
+domain_type(consoletype_t)
+domain_entry_file(consoletype_t,consoletype_exec_t)
+role system_r types consoletype_t;

From the comment you have here, this is wrong since init_domain() is for

running it from init itself, not initrc.

Review

Quoted 9 lines
(quoted diff) +9 -0
+       ifdef(`targeted_policy',`
+               if(pegasus_disable_trans) {
+                       can_exec($1,pegasus_exec_t)
+               } else {
+                       domain_auto_trans($1,pegasus_exec_t,pegasus_t)
+               }
+       ', `
+               domain_auto_trans($1,pegasus_exec_t,pegasus_t)
+       ')

Why is this conditional?

Quoted 4 lines
(quoted diff) +0 -0
@@ -97,13 +99,12 @@
 
 auth_use_nsswitch(pegasus_t)
 auth_domtrans_chk_passwd(pegasus_t)

Review line 108

Quoted 10 lines
(quoted diff) +2 -3
+auth_read_shadow(pegasus_t)
 
 domain_use_interactive_fds(pegasus_t)
 domain_read_all_domains_state(pegasus_t)
 
-files_read_etc_files(pegasus_t)
-files_list_var_lib(pegasus_t)
-files_read_var_lib_files(pegasus_t)
+files_read_all_files(pegasus_t)
 files_read_var_lib_symlinks(pegasus_t)

The above added lines seem way too privileged.

Review

Quoted 9 lines
(quoted diff) +4 -0
 type auditd_etc_t;
+ifdef(`enable_mls',`', `
 files_security_file(auditd_etc_t)
+')
 
 type auditd_log_t;
+ifdef(`enable_mls',`', `
 files_security_file(auditd_log_t)
+')

This is not an acceptable way of excluding access to these files. My feeling is that the better way would be to change sysadm's (and any other domain that has this concern) access to "all files but shadow" to "all files but security files" for mls policies.

Quoted 1 line

+/usr/bin/mplayer -- gen_context(system_u:object_r:unconfined_execmem_exec_t,s0)

It would be cleaner if we made mplayer_exec_t an alias of unconfined_execmem_exec_t in the targeted policy, and the other two exec files in the mplayer module aliases of bin, and just include that module. Then if someone happens to have the mplayer module included too, there won't be conflicting fc specifications.

The alias interface that needs to be added can be modeled after corecmd_bin_alias().

Quoted 7 lines
(quoted diff) +7 -0
+interface(`unconfined_execmem_domtrans',`
+	ifdef(`targeted_policy',`
+		gen_require(`
+			type unconfined_execmem_t, unconfined_execmem_exec_t;
+		')
+
+		corecmd_search_bin($1)

Review

Quoted 10 lines
(quoted diff) +10 -0
+		domain_auto_trans($1, unconfined_execmem_exec_t, unconfined_execmem_t)
+
+		allow $1 unconfined_execmem_t:fd use;
+		allow unconfined_execmem_t $1:fd use;
+		allow unconfined_execmem_t $1:fifo_file rw_file_perms;
+		allow unconfined_execmem_t $1:process sigchld;
+	',`
+		errprint(`Warning: $0($1) has no effect in strict policy.'__endline__)
+	')
+')

I believe this should just be moved into unconfined_domtrans(). If you're transitioning from a confined domain to either of the unconfined domains, all bets are pretty much off already. Differentiating them just seems like it will cause headaches, so it would be best to be as transparent as possible.

The remainder should be merged.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


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