selinux-policy/policy/modules/services/oident.te

74 lines
1.8 KiB
Plaintext
Raw Normal View History

2008-10-06 14:01:59 +00:00
policy_module(oident, 1.0.0)
########################################
#
# Oident daemon private declarations
#
attribute oidentd_user_content_type;
type oidentd_t;
type oidentd_exec_t;
init_daemon_domain(oidentd_t, oidentd_exec_t)
type oidentd_initrc_exec_t;
init_script_file(oidentd_initrc_exec_t)
type oidentd_config_t;
files_config_file(oidentd_config_t)
########################################
#
# Oident daemon private policy
#
allow oidentd_t self:capability { setuid setgid };
allow oidentd_t self:netlink_route_socket { write getattr read bind create nlmsg_read };
allow oidentd_t self:netlink_tcpdiag_socket { write read create nlmsg_read };
allow oidentd_t self:tcp_socket { setopt read bind create accept write getattr listen };
allow oidentd_t self:udp_socket { write read create connect getattr ioctl };
allow oidentd_t self:unix_dgram_socket { create connect };
allow oidentd_t oidentd_config_t:file read_file_perms;
corenet_all_recvfrom_unlabeled(oidentd_t)
corenet_all_recvfrom_netlabel(oidentd_t)
corenet_tcp_sendrecv_all_if(oidentd_t)
corenet_tcp_sendrecv_all_nodes(oidentd_t)
corenet_tcp_bind_all_nodes(oidentd_t)
corenet_tcp_bind_auth_port(oidentd_t)
corenet_sendrecv_auth_server_packets(oidentd_t)
files_read_etc_files(oidentd_t)
kernel_read_kernel_sysctls(oidentd_t)
kernel_read_network_state(oidentd_t)
kernel_read_network_state_symlinks(oidentd_t)
kernel_read_sysctl(oidentd_t)
libs_use_ld_so(oidentd_t)
libs_use_shared_libs(oidentd_t)
logging_send_syslog_msg(oidentd_t)
miscfiles_read_localization(oidentd_t)
sysnet_read_config(oidentd_t)
2008-10-13 13:36:50 +00:00
oident_read_all_user_content(oidentd_t)
2008-10-06 14:01:59 +00:00
optional_policy(`
nis_use_ypbind(oidentd_t)
')
tunable_policy(`use_samba_home_dirs', `
fs_list_cifs(oidentd_t)
fs_read_cifs_files(oidentd_t)
')
tunable_policy(`use_nfs_home_dirs', `
fs_list_nfs(oidentd_t)
fs_read_nfs_files(oidentd_t)
')