51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
|
|
||
|
policy_module(memcached, 1.0.0)
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# Declarations
|
||
|
#
|
||
|
|
||
|
type memcached_t;
|
||
|
type memcached_exec_t;
|
||
|
init_daemon_domain(memcached_t, memcached_exec_t)
|
||
|
|
||
|
type memcached_initrc_exec_t;
|
||
|
init_script_file(memcached_initrc_exec_t)
|
||
|
|
||
|
type memcached_var_run_t;
|
||
|
files_pid_file(memcached_var_run_t)
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# memcached local policy
|
||
|
#
|
||
|
|
||
|
allow memcached_t self:capability { setuid setgid };
|
||
|
allow memcached_t self:tcp_socket create_stream_socket_perms;
|
||
|
allow memcached_t self:udp_socket { create_socket_perms listen };
|
||
|
allow memcached_t self:fifo_file rw_fifo_file_perms;
|
||
|
|
||
|
corenet_all_recvfrom_unlabeled(memcached_t)
|
||
|
corenet_udp_sendrecv_all_if(memcached_t)
|
||
|
corenet_udp_sendrecv_all_nodes(memcached_t)
|
||
|
corenet_udp_sendrecv_all_ports(memcached_t)
|
||
|
corenet_udp_bind_all_nodes(memcached_t)
|
||
|
corenet_tcp_sendrecv_all_if(memcached_t)
|
||
|
corenet_tcp_sendrecv_all_nodes(memcached_t)
|
||
|
corenet_tcp_sendrecv_all_ports(memcached_t)
|
||
|
corenet_tcp_bind_all_nodes(memcached_t)
|
||
|
|
||
|
manage_dirs_pattern(memcached_t, memcached_var_run_t, memcached_var_run_t)
|
||
|
manage_files_pattern(memcached_t, memcached_var_run_t, memcached_var_run_t)
|
||
|
files_pid_filetrans(memcached_t,memcached_var_run_t, { file dir })
|
||
|
|
||
|
files_read_etc_files(memcached_t)
|
||
|
|
||
|
libs_use_ld_so(memcached_t)
|
||
|
libs_use_shared_libs(memcached_t)
|
||
|
|
||
|
miscfiles_read_localization(memcached_t)
|
||
|
|
||
|
sysnet_dns_name_resolve(memcached_t)
|