2020-06-10 19:02:27 +00:00
|
|
|
policy_module(oident, 2.6.1)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type oidentd_t;
|
|
|
|
type oidentd_exec_t;
|
|
|
|
init_daemon_domain(oidentd_t, oidentd_exec_t)
|
|
|
|
|
|
|
|
type oidentd_home_t;
|
|
|
|
userdom_user_home_content(oidentd_home_t)
|
|
|
|
|
|
|
|
type oidentd_initrc_exec_t;
|
|
|
|
init_script_file(oidentd_initrc_exec_t)
|
|
|
|
|
|
|
|
type oidentd_config_t;
|
|
|
|
files_config_file(oidentd_config_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow oidentd_t self:capability { setgid setuid };
|
|
|
|
allow oidentd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
|
|
allow oidentd_t self:tcp_socket { accept listen };
|
|
|
|
|
|
|
|
allow oidentd_t oidentd_config_t:file read_file_perms;
|
|
|
|
|
|
|
|
allow oidentd_t oidentd_home_t:file read_file_perms;
|
|
|
|
|
|
|
|
kernel_read_kernel_sysctls(oidentd_t)
|
|
|
|
kernel_read_network_state(oidentd_t)
|
|
|
|
kernel_read_network_state_symlinks(oidentd_t)
|
|
|
|
kernel_read_sysctl(oidentd_t)
|
|
|
|
kernel_request_load_module(oidentd_t)
|
|
|
|
|
|
|
|
corenet_all_recvfrom_netlabel(oidentd_t)
|
|
|
|
corenet_tcp_sendrecv_generic_if(oidentd_t)
|
|
|
|
corenet_tcp_sendrecv_generic_node(oidentd_t)
|
|
|
|
corenet_tcp_bind_generic_node(oidentd_t)
|
|
|
|
|
|
|
|
corenet_sendrecv_auth_server_packets(oidentd_t)
|
|
|
|
corenet_tcp_bind_auth_port(oidentd_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(oidentd_t)
|
|
|
|
fs_search_auto_mountpoints(oidentd_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(oidentd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(oidentd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(oidentd_t)
|
|
|
|
|
|
|
|
userdom_search_user_home_dirs(oidentd_t)
|
|
|
|
|
|
|
|
tunable_policy(`use_samba_home_dirs',`
|
|
|
|
fs_list_cifs(oidentd_t)
|
2020-08-13 12:24:35 +00:00
|
|
|
fs_read_cifs_files(oidentd_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
tunable_policy(`use_nfs_home_dirs',`
|
|
|
|
fs_list_nfs(oidentd_t)
|
2020-08-13 12:24:35 +00:00
|
|
|
fs_read_nfs_files(oidentd_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
')
|