add speedtouch, bug 1548
This commit is contained in:
parent
fa8951606e
commit
5501be59f0
@ -53,6 +53,7 @@
|
|||||||
qmail (Petre Rodan)
|
qmail (Petre Rodan)
|
||||||
rhgb
|
rhgb
|
||||||
snort
|
snort
|
||||||
|
speedtouch
|
||||||
thunderbird
|
thunderbird
|
||||||
tor (Erich Schubert)
|
tor (Erich Schubert)
|
||||||
transproxy
|
transproxy
|
||||||
|
2
refpolicy/policy/modules/services/speedtouch.fc
Normal file
2
refpolicy/policy/modules/services/speedtouch.fc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/usr/sbin/speedmgmt -- gen_context(system_u:object_r:speedmgmt_exec_t,s0)
|
||||||
|
|
1
refpolicy/policy/modules/services/speedtouch.if
Normal file
1
refpolicy/policy/modules/services/speedtouch.if
Normal file
@ -0,0 +1 @@
|
|||||||
|
## <summary>Alcatel speedtouch USB ADSL modem</summary>
|
77
refpolicy/policy/modules/services/speedtouch.te
Normal file
77
refpolicy/policy/modules/services/speedtouch.te
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
|
||||||
|
policy_module(speedtouch,1.0.0)
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
#
|
||||||
|
# Rules for the speedmgmt_t domain.
|
||||||
|
#
|
||||||
|
|
||||||
|
type speedmgmt_t;
|
||||||
|
type speedmgmt_exec_t;
|
||||||
|
init_daemon_domain(speedmgmt_t,speedmgmt_exec_t)
|
||||||
|
|
||||||
|
type speedmgmt_tmp_t;
|
||||||
|
files_tmp_file(speedmgmt_tmp_t)
|
||||||
|
|
||||||
|
type speedmgmt_var_run_t;
|
||||||
|
files_pid_file(speedmgmt_var_run_t)
|
||||||
|
|
||||||
|
########################################
|
||||||
|
#
|
||||||
|
# Local policy
|
||||||
|
#
|
||||||
|
|
||||||
|
dontaudit speedmgmt_t self:capability sys_tty_config;
|
||||||
|
allow speedmgmt_t self:process signal_perms;
|
||||||
|
|
||||||
|
allow speedmgmt_t speedmgmt_tmp_t:dir create_dir_perms;
|
||||||
|
allow speedmgmt_t speedmgmt_tmp_t:file create_file_perms;
|
||||||
|
files_tmp_filetrans(speedmgmt_t, speedmgmt_tmp_t, { file dir })
|
||||||
|
|
||||||
|
allow speedmgmt_t speedmgmt_var_run_t:file create_file_perms;
|
||||||
|
allow speedmgmt_t speedmgmt_var_run_t:dir rw_dir_perms;
|
||||||
|
files_pid_filetrans(speedmgmt_t,speedmgmt_var_run_t,file)
|
||||||
|
|
||||||
|
kernel_read_kernel_sysctls(speedmgmt_t)
|
||||||
|
kernel_list_proc(speedmgmt_t)
|
||||||
|
kernel_read_proc_symlinks(speedmgmt_t)
|
||||||
|
|
||||||
|
dev_read_sysfs(speedmgmt_t)
|
||||||
|
dev_read_usbfs(speedmgmt_t)
|
||||||
|
|
||||||
|
domain_use_interactive_fds(speedmgmt_t)
|
||||||
|
|
||||||
|
files_read_etc_files(speedmgmt_t)
|
||||||
|
files_read_usr_files(speedmgmt_t)
|
||||||
|
|
||||||
|
fs_getattr_all_fs(speedmgmt_t)
|
||||||
|
fs_search_auto_mountpoints(speedmgmt_t)
|
||||||
|
|
||||||
|
term_dontaudit_use_console(speedmgmt_t)
|
||||||
|
|
||||||
|
init_use_fds(speedmgmt_t)
|
||||||
|
init_use_script_ptys(speedmgmt_t)
|
||||||
|
|
||||||
|
libs_use_ld_so(speedmgmt_t)
|
||||||
|
libs_use_shared_libs(speedmgmt_t)
|
||||||
|
|
||||||
|
logging_send_syslog_msg(speedmgmt_t)
|
||||||
|
|
||||||
|
miscfiles_read_localization(speedmgmt_t)
|
||||||
|
|
||||||
|
userdom_dontaudit_use_unpriv_user_fds(speedmgmt_t)
|
||||||
|
userdom_dontaudit_search_sysadm_home_dirs(speedmgmt_t)
|
||||||
|
|
||||||
|
ifdef(`targeted_policy',`
|
||||||
|
term_dontaudit_use_unallocated_ttys(speedmgmt_t)
|
||||||
|
term_dontaudit_use_generic_ptys(speedmgmt_t)
|
||||||
|
files_dontaudit_read_root_files(speedmgmt_t)
|
||||||
|
')
|
||||||
|
|
||||||
|
optional_policy(`
|
||||||
|
seutil_sigchld_newrole(speedmgmt_t)
|
||||||
|
')
|
||||||
|
|
||||||
|
optional_policy(`
|
||||||
|
udev_read_db(speedmgmt_t)
|
||||||
|
')
|
Loading…
Reference in New Issue
Block a user