2010-08-26 13:41:21 +00:00
|
|
|
policy_module(sambagui,1.0.0)
|
2010-06-28 15:52:55 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type sambagui_t;
|
|
|
|
type sambagui_exec_t;
|
|
|
|
dbus_system_domain(sambagui_t, sambagui_exec_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# system-config-samba local policy
|
|
|
|
#
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
allow sambagui_t self:capability dac_override;
|
2010-06-28 15:52:55 +00:00
|
|
|
allow sambagui_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow sambagui_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
# handling with samba conf files
|
|
|
|
samba_append_log(sambagui_t)
|
|
|
|
samba_manage_config(sambagui_t)
|
|
|
|
samba_manage_var_files(sambagui_t)
|
|
|
|
samba_read_secrets(sambagui_t)
|
|
|
|
samba_initrc_domtrans(sambagui_t)
|
|
|
|
samba_domtrans_smbd(sambagui_t)
|
|
|
|
samba_domtrans_nmbd(sambagui_t)
|
2010-06-28 15:52:55 +00:00
|
|
|
|
|
|
|
# execut apps of system-config-samba
|
|
|
|
corecmd_exec_shell(sambagui_t)
|
|
|
|
corecmd_exec_bin(sambagui_t)
|
|
|
|
|
|
|
|
files_read_etc_files(sambagui_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
files_read_usr_files(sambagui_t)
|
2010-06-28 15:52:55 +00:00
|
|
|
files_search_var_lib(sambagui_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
|
|
|
|
# reading shadow by pdbedit
|
|
|
|
#auth_read_shadow(sambagui_t)
|
2010-06-28 15:52:55 +00:00
|
|
|
|
|
|
|
auth_use_nsswitch(sambagui_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(sambagui_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(sambagui_t)
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
# read meminfo
|
|
|
|
kernel_read_system_state(sambagui_t)
|
|
|
|
|
|
|
|
dev_dontaudit_read_urand(sambagui_t)
|
2010-06-28 15:52:55 +00:00
|
|
|
nscd_dontaudit_search_pid(sambagui_t)
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
userdom_dontaudit_search_admin_dir(sambagui_t)
|
|
|
|
|
2010-06-28 15:52:55 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
consoletype_exec(sambagui_t)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
optional_policy(`
|
|
|
|
gnome_dontaudit_search_config(sambagui_t)
|
|
|
|
')
|
|
|
|
|
2010-06-28 15:52:55 +00:00
|
|
|
optional_policy(`
|
|
|
|
policykit_dbus_chat(sambagui_t)
|
|
|
|
')
|