Chris PeBenito 131634
Chris PeBenito 6394ea
policy_module(podsleuth, 1.2.1)
Chris PeBenito 131634
Chris PeBenito 131634
########################################
Chris PeBenito 131634
#
Chris PeBenito 131634
# Declarations
Chris PeBenito 131634
#
Chris PeBenito 131634
Chris PeBenito 131634
type podsleuth_t;
Chris PeBenito 131634
type podsleuth_exec_t;
Chris PeBenito 131634
application_domain(podsleuth_t, podsleuth_exec_t)
Chris PeBenito 131634
role system_r types podsleuth_t;
Chris PeBenito 131634
Chris PeBenito 5bb5ec
type podsleuth_cache_t;
Chris PeBenito 5bb5ec
files_type(podsleuth_cache_t)
Chris PeBenito 5bb5ec
ubac_constrained(podsleuth_cache_t)
Chris PeBenito 5bb5ec
Chris PeBenito 5bb5ec
type podsleuth_tmp_t;
Chris PeBenito 5bb5ec
files_tmp_file(podsleuth_tmp_t)
Chris PeBenito 5bb5ec
ubac_constrained(podsleuth_tmp_t)
Chris PeBenito 5bb5ec
Chris PeBenito 5bb5ec
type podsleuth_tmpfs_t;
Chris PeBenito 5bb5ec
files_tmpfs_file(podsleuth_tmpfs_t)
Chris PeBenito 5bb5ec
ubac_constrained(podsleuth_tmpfs_t)
Chris PeBenito 5bb5ec
Chris PeBenito 131634
########################################
Chris PeBenito 131634
#
Chris PeBenito 131634
# podsleuth local policy
Chris PeBenito 131634
#
Chris PeBenito 5bb5ec
allow podsleuth_t self:capability { kill dac_override sys_admin sys_rawio };
Chris PeBenito 5bb5ec
allow podsleuth_t self:process { ptrace signal getsched execheap execmem execstack };
Chris PeBenito 131634
allow podsleuth_t self:fifo_file rw_file_perms;
Chris PeBenito 131634
allow podsleuth_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 5bb5ec
allow podsleuth_t self:sem create_sem_perms;
Chris PeBenito 5bb5ec
allow podsleuth_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 5bb5ec
allow podsleuth_t self:udp_socket create_socket_perms;
Chris PeBenito 5bb5ec
Chris PeBenito 5bb5ec
manage_dirs_pattern(podsleuth_t, podsleuth_cache_t, podsleuth_cache_t)
Chris PeBenito 5bb5ec
manage_files_pattern(podsleuth_t, podsleuth_cache_t, podsleuth_cache_t)
Chris PeBenito 5bb5ec
files_var_filetrans(podsleuth_t, podsleuth_cache_t, { file dir })
Chris PeBenito 5bb5ec
Chris PeBenito 5bb5ec
allow podsleuth_t podsleuth_tmp_t:dir mounton;
Chris PeBenito 5bb5ec
manage_dirs_pattern(podsleuth_t, podsleuth_tmp_t, podsleuth_tmp_t)
Chris PeBenito 5bb5ec
manage_files_pattern(podsleuth_t, podsleuth_tmp_t, podsleuth_tmp_t)
Chris PeBenito 5bb5ec
files_tmp_filetrans(podsleuth_t, podsleuth_tmp_t, { file dir })
Chris PeBenito 5bb5ec
Chris PeBenito 5bb5ec
manage_dirs_pattern(podsleuth_t, podsleuth_tmpfs_t, podsleuth_tmpfs_t)
Chris PeBenito 5bb5ec
manage_files_pattern(podsleuth_t, podsleuth_tmpfs_t, podsleuth_tmpfs_t)
Chris PeBenito 5bb5ec
manage_lnk_files_pattern(podsleuth_t, podsleuth_tmpfs_t, podsleuth_tmpfs_t)
Chris PeBenito 5bb5ec
fs_tmpfs_filetrans(podsleuth_t, podsleuth_tmpfs_t, { dir file lnk_file })
Chris PeBenito 131634
Chris PeBenito 131634
kernel_read_system_state(podsleuth_t)
Chris PeBenito 131634
Chris PeBenito 5bb5ec
corecmd_exec_bin(podsleuth_t)
Chris PeBenito 5bb5ec
Chris PeBenito 5bb5ec
corenet_tcp_connect_http_port(podsleuth_t)
Chris PeBenito 5bb5ec
Chris PeBenito 131634
dev_read_urand(podsleuth_t)
Chris PeBenito 131634
Chris PeBenito 131634
files_read_etc_files(podsleuth_t)
Chris PeBenito 131634
Chris PeBenito 5bb5ec
fs_mount_dos_fs(podsleuth_t)
Chris PeBenito 5bb5ec
fs_unmount_dos_fs(podsleuth_t)
Chris PeBenito 5bb5ec
fs_getattr_dos_fs(podsleuth_t)
Chris PeBenito 5bb5ec
fs_read_dos_files(podsleuth_t)
Chris PeBenito 5bb5ec
fs_search_dos(podsleuth_t)
Chris PeBenito 5bb5ec
fs_getattr_tmpfs(podsleuth_t)
Chris PeBenito 5bb5ec
fs_list_tmpfs(podsleuth_t)
Chris PeBenito 5bb5ec
Chris PeBenito 131634
miscfiles_read_localization(podsleuth_t)
Chris PeBenito 131634
Chris PeBenito 5bb5ec
sysnet_dns_name_resolve(podsleuth_t)
Chris PeBenito 5bb5ec
Chris PeBenito 6394ea
userdom_signal_unpriv_users(podsleuth_t)
Chris PeBenito 6394ea
Chris PeBenito 5bb5ec
optional_policy(`
Chris PeBenito 5bb5ec
	dbus_system_bus_client(podsleuth_t)
Chris PeBenito 131634
Chris PeBenito 5bb5ec
	optional_policy(`
Chris PeBenito 5bb5ec
		hal_dbus_chat(podsleuth_t)
Chris PeBenito 5bb5ec
	')
Chris PeBenito 5bb5ec
')
Chris PeBenito 131634
Chris PeBenito 5bb5ec
optional_policy(`
Chris PeBenito 5bb5ec
	mono_exec(podsleuth_t)
Chris PeBenito 5bb5ec
')