|
Chris PeBenito |
17de1b |
## <summary>Remote Procedure Call Daemon for managment of network based process communication</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0d96ff |
########################################
|
|
Chris PeBenito |
0d96ff |
## <summary>
|
|
Chris PeBenito |
0d96ff |
## RPC stub interface. No access allowed.
|
|
Chris PeBenito |
0d96ff |
## </summary>
|
|
Chris PeBenito |
f7eaee |
## <param name="domain" unused="true">
|
|
Chris PeBenito |
0d96ff |
## <summary>
|
|
Chris PeBenito |
f7eaee |
## Domain allowed access.
|
|
Chris PeBenito |
0d96ff |
## </summary>
|
|
Chris PeBenito |
0d96ff |
## </param>
|
|
Chris PeBenito |
0d96ff |
#
|
|
Chris PeBenito |
0d96ff |
interface(`rpc_stub',`
|
|
Chris PeBenito |
0d96ff |
gen_require(`
|
|
Chris PeBenito |
0d96ff |
type exports_t;
|
|
Chris PeBenito |
0d96ff |
')
|
|
Chris PeBenito |
0d96ff |
')
|
|
Chris PeBenito |
0d96ff |
|
|
Chris PeBenito |
17de1b |
#######################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The template to define a rpc domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <desc>
|
|
Chris PeBenito |
17de1b |
##
|
|
Chris PeBenito |
17de1b |
## This template creates a domain to be used for
|
|
Chris PeBenito |
17de1b |
## a new rpc daemon.
|
|
Chris PeBenito |
17de1b |
##
|
|
Chris PeBenito |
17de1b |
## </desc>
|
|
Chris PeBenito |
17de1b |
## <param name="userdomain_prefix">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The type of daemon to be used.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
template(`rpc_domain_template', `
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type $1_t;
|
|
Chris PeBenito |
17de1b |
type $1_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain($1_t, $1_exec_t)
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
####################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local Policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dontaudit $1_t self:capability { net_admin sys_tty_config };
|
|
Chris PeBenito |
17de1b |
allow $1_t self:capability net_bind_service;
|
|
Chris PeBenito |
17de1b |
allow $1_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
allow $1_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow $1_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow $1_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow $1_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern($1_t, var_lib_nfs_t, var_lib_nfs_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1_t, var_lib_nfs_t, var_lib_nfs_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_list_proc($1_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks($1_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls($1_t)
|
|
Chris PeBenito |
17de1b |
# bind to arbitary unused ports
|
|
Chris PeBenito |
17de1b |
kernel_rw_rpc_sysctls($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs($1_t)
|
|
Chris PeBenito |
a5e213 |
dev_read_urand($1_t)
|
|
Chris PeBenito |
a5e213 |
dev_read_rand($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled($1_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel($1_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if($1_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if($1_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node($1_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node($1_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports($1_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports($1_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node($1_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node($1_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_reserved_port($1_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports($1_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_portmap_client_packets($1_t)
|
|
Chris PeBenito |
17de1b |
# do not log when it tries to bind to a port belonging to another domain
|
|
Chris PeBenito |
3c9b2e |
corenet_dontaudit_tcp_bind_all_ports($1_t)
|
|
Chris PeBenito |
3c9b2e |
corenet_dontaudit_udp_bind_all_ports($1_t)
|
|
Chris PeBenito |
17de1b |
# bind to arbitary unused ports
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_generic_port($1_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_generic_port($1_t)
|
|
Chris PeBenito |
3c9b2e |
corenet_tcp_bind_all_rpc_ports($1_t)
|
|
Chris PeBenito |
3c9b2e |
corenet_udp_bind_all_rpc_ports($1_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_generic_server_packets($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
372acd |
fs_rw_rpc_named_pipes($1_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files($1_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files($1_t)
|
|
Chris PeBenito |
17de1b |
files_search_var($1_t)
|
|
Chris PeBenito |
17de1b |
files_search_var_lib($1_t)
|
|
Chris PeBenito |
372acd |
files_list_home($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch($1_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds($1_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
372acd |
rpcbind_stream_connect($1_t)
|
|
Chris PeBenito |
372acd |
')
|
|
Chris PeBenito |
372acd |
|
|
Chris PeBenito |
372acd |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole($1_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db($1_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Send UDP network traffic to rpc and recieve UDP traffic from rpc. (Deprecated)
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_udp_send',`
|
|
Chris PeBenito |
33c7e6 |
refpolicywarn(`$0($*) has been deprecated.')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Do not audit attempts to get the attributes
|
|
Chris PeBenito |
17de1b |
## of the NFS export file.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_dontaudit_getattr_exports',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type exports_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dontaudit $1 exports_t:file getattr;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Allow read access to exports.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_read_exports',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type exports_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow $1 exports_t:file read_file_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Allow write access to exports.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_write_exports',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type exports_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 exports_t:file write;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Execute domain in nfsd domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_domtrans_nfsd',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type nfsd_t, nfsd_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, nfsd_exec_t, nfsd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
372acd |
#######################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Execute domain in nfsd domain.
|
|
Chris PeBenito |
3c9b2e |
## </summary>
|
|
Chris PeBenito |
3c9b2e |
## <param name="domain">
|
|
Chris PeBenito |
3c9b2e |
## <summary>
|
|
Chris PeBenito |
372acd |
## Domain allowed access.
|
|
Chris PeBenito |
372acd |
## </summary>
|
|
Chris PeBenito |
372acd |
## </param>
|
|
Chris PeBenito |
372acd |
#
|
|
Chris PeBenito |
372acd |
interface(`rpc_initrc_domtrans_nfsd',`
|
|
Chris PeBenito |
372acd |
gen_require(`
|
|
Chris PeBenito |
372acd |
type nfsd_initrc_exec_t;
|
|
Chris PeBenito |
372acd |
')
|
|
Chris PeBenito |
372acd |
|
|
Chris PeBenito |
372acd |
init_labeled_script_domtrans($1, nfsd_initrc_exec_t)
|
|
Chris PeBenito |
372acd |
')
|
|
Chris PeBenito |
372acd |
|
|
Chris PeBenito |
372acd |
########################################
|
|
Chris PeBenito |
372acd |
## <summary>
|
|
Chris PeBenito |
372acd |
## Execute domain in rpcd domain.
|
|
Chris PeBenito |
372acd |
## </summary>
|
|
Chris PeBenito |
372acd |
## <param name="domain">
|
|
Chris PeBenito |
372acd |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## The type of the process performing this action.
|
|
Chris PeBenito |
3c9b2e |
## </summary>
|
|
Chris PeBenito |
3c9b2e |
## </param>
|
|
Chris PeBenito |
3c9b2e |
#
|
|
Chris PeBenito |
3c9b2e |
interface(`rpc_domtrans_rpcd',`
|
|
Chris PeBenito |
3c9b2e |
gen_require(`
|
|
Chris PeBenito |
3c9b2e |
type rpcd_t, rpcd_exec_t;
|
|
Chris PeBenito |
3c9b2e |
')
|
|
Chris PeBenito |
3c9b2e |
|
|
Chris PeBenito |
3c9b2e |
domtrans_pattern($1, rpcd_exec_t, rpcd_t)
|
|
Chris PeBenito |
3c9b2e |
allow rpcd_t $1:process signal;
|
|
Chris PeBenito |
3c9b2e |
')
|
|
Chris PeBenito |
3c9b2e |
|
|
Chris PeBenito |
372acd |
#######################################
|
|
Chris PeBenito |
372acd |
## <summary>
|
|
Chris PeBenito |
372acd |
## Execute domain in rpcd domain.
|
|
Chris PeBenito |
372acd |
## </summary>
|
|
Chris PeBenito |
372acd |
## <param name="domain">
|
|
Chris PeBenito |
372acd |
## <summary>
|
|
Chris PeBenito |
372acd |
## Domain allowed access.
|
|
Chris PeBenito |
372acd |
## </summary>
|
|
Chris PeBenito |
372acd |
## </param>
|
|
Chris PeBenito |
372acd |
#
|
|
Chris PeBenito |
372acd |
interface(`rpc_initrc_domtrans_rpcd',`
|
|
Chris PeBenito |
372acd |
gen_require(`
|
|
Chris PeBenito |
372acd |
type rpcd_initrc_exec_t;
|
|
Chris PeBenito |
372acd |
')
|
|
Chris PeBenito |
372acd |
|
|
Chris PeBenito |
372acd |
init_labeled_script_domtrans($1, rpcd_initrc_exec_t)
|
|
Chris PeBenito |
372acd |
')
|
|
Chris PeBenito |
372acd |
|
|
Chris PeBenito |
3c9b2e |
########################################
|
|
Chris PeBenito |
3c9b2e |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Read NFS exported content.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_read_nfs_content',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
372acd |
type nfsd_ro_t, nfsd_rw_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 { nfsd_ro_t nfsd_rw_t }:dir list_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow $1 { nfsd_ro_t nfsd_rw_t }:file read_file_perms;
|
|
Chris PeBenito |
17de1b |
allow $1 { nfsd_ro_t nfsd_rw_t }:lnk_file { getattr read };
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Allow domain to create read and write NFS directories.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_manage_nfs_rw_content',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
372acd |
type nfsd_rw_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern($1, nfsd_rw_t, nfsd_rw_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, nfsd_rw_t, nfsd_rw_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern($1, nfsd_rw_t, nfsd_rw_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Allow domain to create read and write NFS directories.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_manage_nfs_ro_content',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
372acd |
type nfsd_ro_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern($1, nfsd_ro_t, nfsd_ro_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, nfsd_ro_t, nfsd_ro_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern($1, nfsd_ro_t, nfsd_ro_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Allow domain to read and write to an NFS UDP socket.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_udp_rw_nfs_sockets',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
372acd |
type nfsd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 nfsd_t:udp_socket rw_socket_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
33c7e6 |
## Send UDP traffic to NFSd. (Deprecated)
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_udp_send_nfs',`
|
|
Chris PeBenito |
33c7e6 |
refpolicywarn(`$0($*) has been deprecated.')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Search NFS state data in /var/lib/nfs.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_search_nfs_state_data',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type var_lib_nfs_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var_lib($1)
|
|
Chris PeBenito |
17de1b |
allow $1 var_lib_nfs_t:dir search;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read NFS state data in /var/lib/nfs.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`rpc_read_nfs_state_data',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type var_lib_nfs_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var_lib($1)
|
|
Chris PeBenito |
0bfccd |
read_files_pattern($1, var_lib_nfs_t, var_lib_nfs_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
3c9b2e |
|
|
Chris PeBenito |
3c9b2e |
########################################
|
|
Chris PeBenito |
3c9b2e |
## <summary>
|
|
Chris PeBenito |
3c9b2e |
## Manage NFS state data in /var/lib/nfs.
|
|
Chris PeBenito |
3c9b2e |
## </summary>
|
|
Chris PeBenito |
3c9b2e |
## <param name="domain">
|
|
Chris PeBenito |
3c9b2e |
## <summary>
|
|
Chris PeBenito |
3f67f7 |
## Domain allowed access.
|
|
Chris PeBenito |
3c9b2e |
## </summary>
|
|
Chris PeBenito |
3c9b2e |
## </param>
|
|
Chris PeBenito |
3c9b2e |
#
|
|
Chris PeBenito |
3c9b2e |
interface(`rpc_manage_nfs_state_data',`
|
|
Chris PeBenito |
3c9b2e |
gen_require(`
|
|
Chris PeBenito |
3c9b2e |
type var_lib_nfs_t;
|
|
Chris PeBenito |
3c9b2e |
')
|
|
Chris PeBenito |
3c9b2e |
|
|
Chris PeBenito |
3c9b2e |
files_search_var_lib($1)
|
|
Chris PeBenito |
3c9b2e |
manage_files_pattern($1, var_lib_nfs_t, var_lib_nfs_t)
|
|
Chris PeBenito |
3c9b2e |
')
|