Skip to contentSkip to conversation

services_samba.patch

refpolicy Daniel J Walsh 2 participants 2 messages Feb 23, 2010 – Apr 16, 2010

lore
Share & tools
lore
#1 lore raw
Quoted 23 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F13/services_samba.patch

optional_policy(`

(quoted diff) +12 -0
+	type samba_unconfined_net_t;
+	domain_type(samba_unconfined_net_t)
+	domain_entry_file(samba_unconfined_net_t, samba_net_exec_t)
+	role system_r types samba_unconfined_net_t;
+
+	unconfined_domain(samba_unconfined_net_t)
+
+	manage_files_pattern(samba_unconfined_net_t, samba_etc_t, samba_secrets_t)
+	filetrans_pattern(samba_unconfined_net_t, samba_etc_t, samba_secrets_t, file)
+	userdom_use_user_terminals(samba_unconfined_net_t)
+')
+
 	type samba_unconfined_script_t;
 	type samba_unconfined_script_exec_t;
 	domain_type(samba_unconfined_script_t)
@@ -876,9 +943,12 @@
 	allow smbd_t samba_unconfined_script_exec_t:dir search_dir_perms;
 	allow smbd_t samba_unconfined_script_exec_t:file ioctl;
 

Review line 954

Quoted 10 lines
(quoted diff) +4 -1
+optional_policy(`
 	unconfined_domain(samba_unconfined_script_t)
+')
 
 	tunable_policy(`samba_run_unconfined',`
 		domtrans_pattern(smbd_t, samba_unconfined_script_exec_t, samba_unconfined_script_t)
-	')
+',`
+	can_exec(smbd_t, samba_unconfined_script_exec_t)
 ')

What are you trying to do here? The tabbing makes this unclear.

Signature · 3 lines
Jeremy J. Solt
Tresys Technology, LLC
410-290-1411 x122
Quoted 1 line