|
Chris PeBenito |
bbc40b5 |
policy_module(podsleuth, 1.6.0)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
########################################
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
#
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
# Declarations
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
#
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
type podsleuth_t;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
type podsleuth_exec_t;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
application_domain(podsleuth_t, podsleuth_exec_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
role system_r types podsleuth_t;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
type podsleuth_cache_t;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
files_type(podsleuth_cache_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
ubac_constrained(podsleuth_cache_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
type podsleuth_tmp_t;
|
|
Chris PeBenito |
66b26ac |
userdom_user_tmp_file(podsleuth_tmp_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
type podsleuth_tmpfs_t;
|
|
Chris PeBenito |
66b26ac |
userdom_user_tmpfs_file(podsleuth_tmpfs_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
########################################
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
#
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
# podsleuth local policy
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
#
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t self:capability { kill dac_override sys_admin sys_rawio };
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t self:process { signal signull getsched execheap execmem execstack };
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t self:fifo_file rw_file_perms;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t self:unix_stream_socket create_stream_socket_perms;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t self:sem create_sem_perms;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t self:tcp_socket create_stream_socket_perms;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t self:udp_socket create_socket_perms;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
manage_dirs_pattern(podsleuth_t, podsleuth_cache_t, podsleuth_cache_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
manage_files_pattern(podsleuth_t, podsleuth_cache_t, podsleuth_cache_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
files_var_filetrans(podsleuth_t, podsleuth_cache_t, { file dir })
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
allow podsleuth_t podsleuth_tmp_t:dir mounton;
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
manage_dirs_pattern(podsleuth_t, podsleuth_tmp_t, podsleuth_tmp_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
manage_files_pattern(podsleuth_t, podsleuth_tmp_t, podsleuth_tmp_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
files_tmp_filetrans(podsleuth_t, podsleuth_tmp_t, { file dir })
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
manage_dirs_pattern(podsleuth_t, podsleuth_tmpfs_t, podsleuth_tmpfs_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
manage_files_pattern(podsleuth_t, podsleuth_tmpfs_t, podsleuth_tmpfs_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
manage_lnk_files_pattern(podsleuth_t, podsleuth_tmpfs_t, podsleuth_tmpfs_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_tmpfs_filetrans(podsleuth_t, podsleuth_tmpfs_t, { dir file lnk_file })
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
kernel_read_system_state(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
kernel_request_load_module(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
corecmd_exec_bin(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
corenet_tcp_connect_http_port(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
dev_read_urand(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
files_read_etc_files(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_mount_dos_fs(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_unmount_dos_fs(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_getattr_dos_fs(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_read_dos_files(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_search_dos(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_getattr_tmpfs(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_list_tmpfs(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
fs_rw_removable_blk_files(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
miscfiles_read_localization(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
sysnet_dns_name_resolve(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
userdom_signal_unpriv_users(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
userdom_signull_unpriv_users(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
userdom_read_user_tmpfs_files(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
optional_policy(`
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
dbus_system_bus_client(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
optional_policy(`
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
hal_dbus_chat(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
')
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
')
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
optional_policy(`
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
mono_exec(podsleuth_t)
|
|
![](https://seccdn.libravatar.org/avatar/a2cc8783a9727b89b4e4f4d85b9c74f5ebb768d0ee0302876f2c9a58b9377de8?s=16&d=retro) |
1ec3d1a |
')
|