selinux-refpolicy/policy/modules/services/memcached.te

59 lines
1.8 KiB
Plaintext
Raw Normal View History

2010-05-24 19:32:01 +00:00
policy_module(memcached, 1.2.0)
2008-10-08 20:03:24 +00:00
########################################
#
# 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 };
dontaudit memcached_t self:capability sys_tty_config;
2010-04-05 17:48:01 +00:00
allow memcached_t self:process { setrlimit signal_perms };
2008-10-08 20:03:24 +00:00
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;
allow memcached_t self:unix_stream_socket create_stream_socket_perms;
2008-10-08 20:03:24 +00:00
corenet_all_recvfrom_unlabeled(memcached_t)
corenet_udp_sendrecv_generic_if(memcached_t)
corenet_udp_sendrecv_generic_node(memcached_t)
2008-10-08 20:03:24 +00:00
corenet_udp_sendrecv_all_ports(memcached_t)
corenet_udp_bind_generic_node(memcached_t)
corenet_tcp_sendrecv_generic_if(memcached_t)
corenet_tcp_sendrecv_generic_node(memcached_t)
2008-10-08 20:03:24 +00:00
corenet_tcp_sendrecv_all_ports(memcached_t)
corenet_tcp_bind_generic_node(memcached_t)
corenet_tcp_bind_memcache_port(memcached_t)
corenet_udp_bind_memcache_port(memcached_t)
2008-10-08 20:03:24 +00:00
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)
2009-06-26 14:40:13 +00:00
files_pid_filetrans(memcached_t, memcached_var_run_t, { file dir })
2008-10-08 20:03:24 +00:00
kernel_read_kernel_sysctls(memcached_t)
2009-12-18 15:41:56 +00:00
kernel_read_system_state(memcached_t)
2008-10-08 20:03:24 +00:00
files_read_etc_files(memcached_t)
term_dontaudit_use_all_ptys(memcached_t)
term_dontaudit_use_all_ttys(memcached_t)
term_dontaudit_use_console(memcached_t)
auth_use_nsswitch(memcached_t)
2008-10-08 20:03:24 +00:00
miscfiles_read_localization(memcached_t)