|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
a32226 |
policy_module(memcached, 1.1.1)
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
967fd1 |
########################################
|
|
Chris PeBenito |
967fd1 |
#
|
|
Chris PeBenito |
967fd1 |
# Declarations
|
|
Chris PeBenito |
967fd1 |
#
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
967fd1 |
type memcached_t;
|
|
Chris PeBenito |
967fd1 |
type memcached_exec_t;
|
|
Chris PeBenito |
967fd1 |
init_daemon_domain(memcached_t, memcached_exec_t)
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
967fd1 |
type memcached_initrc_exec_t;
|
|
Chris PeBenito |
967fd1 |
init_script_file(memcached_initrc_exec_t)
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
967fd1 |
type memcached_var_run_t;
|
|
Chris PeBenito |
967fd1 |
files_pid_file(memcached_var_run_t)
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
967fd1 |
########################################
|
|
Chris PeBenito |
967fd1 |
#
|
|
Chris PeBenito |
967fd1 |
# memcached local policy
|
|
Chris PeBenito |
967fd1 |
#
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
967fd1 |
allow memcached_t self:capability { setuid setgid };
|
|
Jeremy Solt |
170a46 |
dontaudit memcached_t self:capability sys_tty_config;
|
|
Jeremy Solt |
170a46 |
allow memcached_t self:process { fork setrlimit signal_perms };
|
|
Chris PeBenito |
967fd1 |
allow memcached_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
967fd1 |
allow memcached_t self:udp_socket { create_socket_perms listen };
|
|
Chris PeBenito |
967fd1 |
allow memcached_t self:fifo_file rw_fifo_file_perms;
|
|
Jeremy Solt |
170a46 |
allow memcached_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
967fd1 |
corenet_all_recvfrom_unlabeled(memcached_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(memcached_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(memcached_t)
|
|
Chris PeBenito |
967fd1 |
corenet_udp_sendrecv_all_ports(memcached_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(memcached_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(memcached_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(memcached_t)
|
|
Chris PeBenito |
967fd1 |
corenet_tcp_sendrecv_all_ports(memcached_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(memcached_t)
|
|
Chris PeBenito |
04d286 |
corenet_tcp_bind_memcache_port(memcached_t)
|
|
Chris PeBenito |
04d286 |
corenet_udp_bind_memcache_port(memcached_t)
|
|
Chris PeBenito |
967fd1 |
|
|
Chris PeBenito |
6073ea |
manage_dirs_pattern(memcached_t, memcached_var_run_t, memcached_var_run_t)
|
|
Chris PeBenito |
6073ea |
manage_files_pattern(memcached_t, memcached_var_run_t, memcached_var_run_t)
|
|
Chris PeBenito |
3f67f7 |
files_pid_filetrans(memcached_t, memcached_var_run_t, { file dir })
|
|
Chris PeBenito |
967fd1 |
|
|
Jeremy Solt |
170a46 |
kernel_read_kernel_sysctls(memcached_t)
|
|
Chris PeBenito |
a32226 |
kernel_read_system_state(memcached_t)
|
|
Chris PeBenito |
a32226 |
|
|
Chris PeBenito |
967fd1 |
files_read_etc_files(memcached_t)
|
|
Chris PeBenito |
967fd1 |
|
|
Jeremy Solt |
170a46 |
term_dontaudit_use_all_ptys(memcached_t)
|
|
Jeremy Solt |
170a46 |
term_dontaudit_use_all_ttys(memcached_t)
|
|
Jeremy Solt |
170a46 |
term_dontaudit_use_console(memcached_t)
|
|
Jeremy Solt |
170a46 |
|
|
Jeremy Solt |
170a46 |
auth_use_nsswitch(memcached_t)
|
|
Chris PeBenito |
967fd1 |
|
|
Jeremy Solt |
170a46 |
miscfiles_read_localization(memcached_t)
|