Dan Walsh 2968e0
policy_module(sambagui, 1.0.0)
Jeremy Solt 68e615
Jeremy Solt 68e615
########################################
Jeremy Solt 68e615
#
Jeremy Solt 68e615
# Declarations
Jeremy Solt 68e615
#
Jeremy Solt 68e615
Jeremy Solt 68e615
type sambagui_t;
Jeremy Solt 68e615
type sambagui_exec_t;
Jeremy Solt 68e615
dbus_system_domain(sambagui_t, sambagui_exec_t)
Jeremy Solt 68e615
Jeremy Solt 68e615
########################################
Jeremy Solt 68e615
#
Jeremy Solt 68e615
# system-config-samba local policy
Jeremy Solt 68e615
#
Jeremy Solt 68e615
Dan Walsh 2968e0
allow sambagui_t self:capability dac_override;
Jeremy Solt 68e615
allow sambagui_t self:fifo_file rw_fifo_file_perms;
Jeremy Solt 68e615
allow sambagui_t self:unix_dgram_socket create_socket_perms;
Jeremy Solt 68e615
Dan Walsh 2968e0
# read meminfo
Dan Walsh 2968e0
kernel_read_system_state(sambagui_t)
Jeremy Solt 68e615
Jeremy Solt 68e615
# execut apps of system-config-samba
Jeremy Solt 68e615
corecmd_exec_shell(sambagui_t)
Jeremy Solt 68e615
corecmd_exec_bin(sambagui_t)
Jeremy Solt 68e615
Dan Walsh 2968e0
dev_dontaudit_read_urand(sambagui_t)
Dan Walsh 2968e0
Jeremy Solt 68e615
files_read_etc_files(sambagui_t)
Jeremy Solt 68e615
files_search_var_lib(sambagui_t)
Dan Walsh 2968e0
files_read_usr_files(sambagui_t)
Jeremy Solt 68e615
Jeremy Solt 68e615
auth_use_nsswitch(sambagui_t)
Jeremy Solt 68e615
Jeremy Solt 68e615
logging_send_syslog_msg(sambagui_t)
Jeremy Solt 68e615
Jeremy Solt 68e615
miscfiles_read_localization(sambagui_t)
Jeremy Solt 68e615
Jeremy Solt 68e615
nscd_dontaudit_search_pid(sambagui_t)
Jeremy Solt 68e615
Dan Walsh 3eaa99
userdom_dontaudit_search_admin_dir(sambagui_t)
Dan Walsh 3eaa99
Dan Walsh 2968e0
# handling with samba conf files
Dan Walsh 2968e0
samba_append_log(sambagui_t)
Dan Walsh 2968e0
samba_manage_config(sambagui_t)
Dan Walsh 2968e0
samba_manage_var_files(sambagui_t)
Dan Walsh 2968e0
samba_read_secrets(sambagui_t)
Dan Walsh 2968e0
samba_initrc_domtrans(sambagui_t)
Dan Walsh 2968e0
samba_domtrans_smbd(sambagui_t)
Dan Walsh 2968e0
samba_domtrans_nmbd(sambagui_t)
Jeremy Solt 68e615
Jeremy Solt 68e615
optional_policy(`
Jeremy Solt 68e615
	consoletype_exec(sambagui_t)
Jeremy Solt 68e615
')
Jeremy Solt 68e615
Jeremy Solt 68e615
optional_policy(`
Dan Walsh 3eaa99
	gnome_dontaudit_search_config(sambagui_t)
Dan Walsh 3eaa99
') 
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Jeremy Solt 68e615
	policykit_dbus_chat(sambagui_t)
Jeremy Solt 68e615
')