Skip to contentSkip to conversation

Avahi changes

PATCH [email protected] 2 participants 2 messages May 30, 2007 – Jun 12, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Avahi needs fowner
Uses nsswitch

policy/modules/services/avahi.te +3 -5
@@ -18,7 +18,7 @@
 # Local policy
 #
 
-allow avahi_t self:capability { dac_override setgid chown kill setuid sys_chroot };
+allow avahi_t self:capability { dac_override setgid chown fowner kill setuid sys_chroot };
 dontaudit avahi_t self:capability sys_tty_config;
 allow avahi_t self:process { setrlimit signal_perms setcap };
 allow avahi_t self:fifo_file { read write };
@@ -32,6 +32,8 @@
 allow avahi_t avahi_var_run_t:dir setattr;
 files_pid_filetrans(avahi_t,avahi_var_run_t,file)
 
+auth_use_nsswitch(avahi_t)
+
 kernel_read_kernel_sysctls(avahi_t)
 kernel_list_proc(avahi_t)
 kernel_read_proc_symlinks(avahi_t)
@@ -63,8 +65,6 @@
 files_read_etc_runtime_files(avahi_t)
 files_read_usr_files(avahi_t)
 
-auth_use_nsswitch(avahi_t)
-
 init_signal_script(avahi_t)
 init_signull_script(avahi_t)
 
@@ -75,8 +75,6 @@
 
 miscfiles_read_localization(avahi_t)
 
-sysnet_read_config(avahi_t)
-
 userdom_dontaudit_use_unpriv_user_fds(avahi_t)
 userdom_dontaudit_search_sysadm_home_dirs(avahi_t)
 

--
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 6 lines · On Wed, 2007-05-30 at 11:04 -0400, [email protected] wrote:

Avahi needs fowner
Uses nsswitch

policy/modules/services/avahi.te line 24

Quoted 8 lines
policy/modules/services/avahi.te +1 -1
@@ -18,7 +18,7 @@
 # Local policy
 #
 
-allow avahi_t self:capability { dac_override setgid chown kill setuid sys_chroot };
+allow avahi_t self:capability { dac_override setgid chown fowner kill setuid sys_chroot };
 dontaudit avahi_t self:capability sys_tty_config;
 allow avahi_t self:process { setrlimit signal_perms setcap };
 allow avahi_t self:fifo_file { read write };

Applied this part.

Quoted 10 lines
policy/modules/services/avahi.te +2 -0
@@ -32,6 +32,8 @@
 allow avahi_t avahi_var_run_t:dir setattr;
 files_pid_filetrans(avahi_t,avahi_var_run_t,file)
 
+auth_use_nsswitch(avahi_t)
+
 kernel_read_kernel_sysctls(avahi_t)
 kernel_list_proc(avahi_t)
 kernel_read_proc_symlinks(avahi_t)

policy/modules/services/avahi.te line 70

Quoted 8 lines
policy/modules/services/avahi.te +0 -2
@@ -63,8 +65,6 @@
 files_read_etc_runtime_files(avahi_t)
 files_read_usr_files(avahi_t)
 
-auth_use_nsswitch(avahi_t)
-
 init_signal_script(avahi_t)
 init_signull_script(avahi_t)
 

The line is already in the right place.

policy/modules/services/avahi.te line 80

Quoted 9 lines
policy/modules/services/avahi.te +0 -2
@@ -75,8 +75,6 @@
 
 miscfiles_read_localization(avahi_t)
 
-sysnet_read_config(avahi_t)
-
 userdom_dontaudit_use_unpriv_user_fds(avahi_t)
 userdom_dontaudit_search_sysadm_home_dirs(avahi_t)
 

Merged this part too.

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.