Chris PeBenito 296273
policy_module(tvtime, 2.0.0)
Chris PeBenito b77d01
Chris PeBenito b77d01
########################################
Chris PeBenito b77d01
#
Chris PeBenito b77d01
# Declarations
Chris PeBenito b77d01
#
Chris PeBenito b77d01
Chris PeBenito 296273
type tvtime_t;
Chris PeBenito b77d01
type tvtime_exec_t;
Chris PeBenito 296273
typealias tvtime_t alias { user_tvtime_t staff_tvtime_t sysadm_tvtime_t };
Chris PeBenito 296273
typealias tvtime_t alias { auditadm_tvtime_t secadm_tvtime_t };
Chris PeBenito 296273
application_domain(tvtime_t, tvtime_exec_t)
Chris PeBenito 296273
ubac_constrained(tvtime_t)
Chris PeBenito b77d01
Chris PeBenito 296273
type tvtime_home_t alias tvtime_rw_t;
Chris PeBenito 296273
typealias tvtime_home_t alias { user_tvtime_home_t staff_tvtime_home_t sysadm_tvtime_home_t };
Chris PeBenito 296273
typealias tvtime_home_t alias { auditadm_tvtime_home_t secadm_tvtime_home_t };
Chris PeBenito 296273
userdom_user_home_content(tvtime_home_t)
Chris PeBenito 296273
files_poly_member(tvtime_home_t)
Chris PeBenito 296273
Chris PeBenito 296273
type tvtime_tmp_t;
Chris PeBenito 296273
typealias tvtime_tmp_t alias { user_tvtime_tmp_t staff_tvtime_tmp_t sysadm_tvtime_tmp_t };
Chris PeBenito 296273
typealias tvtime_tmp_t alias { auditadm_tvtime_tmp_t secadm_tvtime_tmp_t };
Chris PeBenito 296273
files_tmp_file(tvtime_tmp_t)
Chris PeBenito 296273
ubac_constrained(tvtime_tmp_t)
Chris PeBenito 296273
Chris PeBenito 296273
type tvtime_tmpfs_t;
Chris PeBenito 296273
typealias tvtime_tmpfs_t alias { user_tvtime_tmpfs_t staff_tvtime_tmpfs_t sysadm_tvtime_tmpfs_t };
Chris PeBenito 296273
typealias tvtime_tmpfs_t alias { auditadm_tvtime_tmpfs_t secadm_tvtime_tmpfs_t };
Chris PeBenito 296273
files_tmpfs_file(tvtime_tmpfs_t)
Chris PeBenito 296273
ubac_constrained(tvtime_tmpfs_t)
Chris PeBenito 296273
Chris PeBenito 296273
########################################
Chris PeBenito 296273
#
Chris PeBenito 296273
# Local policy
Chris PeBenito 296273
#
Chris PeBenito 296273
Chris PeBenito 296273
allow tvtime_t self:capability { setuid sys_nice sys_resource };
Chris PeBenito 296273
allow tvtime_t self:process setsched;
Chris PeBenito 296273
allow tvtime_t self:unix_dgram_socket rw_socket_perms;
Chris PeBenito 296273
allow tvtime_t self:unix_stream_socket rw_stream_socket_perms;
Chris PeBenito 296273
Chris PeBenito 296273
# X access, Home files
Chris PeBenito 296273
manage_dirs_pattern(tvtime_t, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
manage_files_pattern(tvtime_t, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
manage_lnk_files_pattern(tvtime_t, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
userdom_user_home_dir_filetrans(tvtime_t, tvtime_home_t, dir)
Chris PeBenito 296273
Chris PeBenito 296273
manage_dirs_pattern(tvtime_t, tvtime_tmp_t, tvtime_tmp_t)
Chris PeBenito 296273
manage_files_pattern(tvtime_t, tvtime_tmp_t, tvtime_tmp_t)
Chris PeBenito 296273
files_tmp_filetrans(tvtime_t, tvtime_tmp_t,{ file dir })
Chris PeBenito 296273
Chris PeBenito 296273
manage_files_pattern(tvtime_t, tvtime_tmpfs_t, tvtime_tmpfs_t)
Chris PeBenito 296273
manage_lnk_files_pattern(tvtime_t, tvtime_tmpfs_t, tvtime_tmpfs_t)
Chris PeBenito 296273
manage_fifo_files_pattern(tvtime_t, tvtime_tmpfs_t, tvtime_tmpfs_t)
Chris PeBenito 296273
manage_sock_files_pattern(tvtime_t, tvtime_tmpfs_t, tvtime_tmpfs_t)
Chris PeBenito 296273
fs_tmpfs_filetrans(tvtime_t, tvtime_tmpfs_t,{ file lnk_file sock_file fifo_file })
Chris PeBenito 296273
Chris PeBenito 296273
kernel_read_all_sysctls(tvtime_t)
Chris PeBenito 296273
kernel_get_sysvipc_info(tvtime_t)
Chris PeBenito 296273
Chris PeBenito 296273
dev_read_urand(tvtime_t)
Chris PeBenito 296273
dev_read_realtime_clock(tvtime_t)
Chris PeBenito 296273
dev_read_sound(tvtime_t)
Chris PeBenito 296273
Chris PeBenito 296273
files_read_usr_files(tvtime_t)
Chris PeBenito 296273
files_search_pids(tvtime_t)
Chris PeBenito 296273
# Read /etc/tvtime
Chris PeBenito 296273
files_read_etc_files(tvtime_t)
Chris PeBenito 296273
Chris PeBenito 296273
# X access, Home files
Chris PeBenito 296273
fs_search_auto_mountpoints(tvtime_t)
Chris PeBenito 296273
Chris PeBenito 296273
miscfiles_read_localization(tvtime_t)
Chris PeBenito 296273
miscfiles_read_fonts(tvtime_t)
Chris PeBenito 296273
Chris PeBenito 296273
userdom_use_user_terminals(tvtime_t)
Chris PeBenito 296273
userdom_read_user_home_content_files(tvtime_t)
Chris PeBenito 296273
Chris PeBenito 296273
# X access, Home files
Chris PeBenito 296273
tunable_policy(`use_nfs_home_dirs',`
Chris PeBenito 296273
	fs_manage_nfs_dirs(tvtime_t)
Chris PeBenito 296273
	fs_manage_nfs_files(tvtime_t)
Chris PeBenito 296273
	fs_manage_nfs_symlinks(tvtime_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
tunable_policy(`use_samba_home_dirs',`
Chris PeBenito 296273
	fs_manage_cifs_dirs(tvtime_t)
Chris PeBenito 296273
	fs_manage_cifs_files(tvtime_t)
Chris PeBenito 296273
	fs_manage_cifs_symlinks(tvtime_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	xserver_user_x_domain_template(tvtime, tvtime_t, tvtime_tmpfs_t)
Chris PeBenito 296273
')