|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
12e9ea |
policy_module(clock,1.4.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type adjtime_t;
|
|
Chris PeBenito |
17de1b |
files_type(adjtime_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type hwclock_t;
|
|
Chris PeBenito |
17de1b |
type hwclock_exec_t;
|
|
Chris PeBenito |
17de1b |
init_system_domain(hwclock_t,hwclock_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types hwclock_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Give hwclock the capabilities it requires. dac_override is a surprise,
|
|
Chris PeBenito |
17de1b |
# but hwclock does require it.
|
|
Chris PeBenito |
c0868a |
allow hwclock_t self:capability { dac_override sys_rawio sys_time sys_tty_config };
|
|
Chris PeBenito |
17de1b |
dontaudit hwclock_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow hwclock_t self:process signal_perms;
|
|
Chris PeBenito |
d6d16b |
allow hwclock_t self:fifo_file { getattr read write };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Allow hwclock to store & retrieve correction factors.
|
|
Chris PeBenito |
17de1b |
allow hwclock_t adjtime_t:file { rw_file_perms setattr };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(hwclock_t)
|
|
Chris PeBenito |
6b19be |
kernel_read_system_state(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
corecmd_exec_bin(hwclock_t)
|
|
Chris PeBenito |
d6d16b |
corecmd_exec_shell(hwclock_t)
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(hwclock_t)
|
|
Chris PeBenito |
17de1b |
dev_rw_realtime_clock(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_xattr_fs(hwclock_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_console(hwclock_t)
|
|
Chris PeBenito |
17de1b |
term_use_unallocated_ttys(hwclock_t)
|
|
Chris PeBenito |
17de1b |
term_use_all_user_ttys(hwclock_t)
|
|
Chris PeBenito |
17de1b |
term_use_all_user_ptys(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_fds(hwclock_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(hwclock_t)
|
|
Chris PeBenito |
17de1b |
# for when /usr is not mounted:
|
|
Chris PeBenito |
17de1b |
files_dontaudit_search_isid_type_dirs(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(hwclock_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d5b81a |
logging_send_audit_msgs(hwclock_t)
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(hwclock_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
apm_append_log(hwclock_t)
|
|
Chris PeBenito |
17de1b |
apm_rw_stream_sockets(hwclock_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(hwclock_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(hwclock_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(hwclock_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(hwclock_t)
|
|
Chris PeBenito |
17de1b |
')
|