selinux-policy/refpolicy/policy/modules/system/mount.if
2005-04-28 13:41:37 +00:00

48 lines
1.3 KiB
Plaintext

# Copyright (C) 2005 Tresys Technology, LLC
#######################################
#
# mount_transition(domain,[`optional'])
#
define(`mount_transition',`
requires_block_template(mount_transition_depend,$2)
allow $1 mount_exec_t:file { getattr read execute };
allow $1 mount_t:process transition;
type_transition $1 mount_exec_t:file mount_t;
dontaudit $1 mount_t:process { noatsecure siginh rlimitinh };
')
define(`mount_transition_depend',`
type mount_t, mount_exec_t;
class file { getattr read execute };
class process { transition noatsecure siginh rlimitinh };
')
#######################################
#
# mount_use_file_descriptors(domain,[`optional'])
#
define(`mount_use_file_descriptors',`
requires_block_template(mount_use_file_descriptors_depend,$2)
allow $1 mount_t:fd use;
')
define(`mount_use_file_descriptors_depend',`
type mount_t;
class fd use;
')
#######################################
#
# mount_send_nfs_client_request(domain,[`optional'])
#
define(`mount_send_nfs_client_request',`
requires_block_template(mount_send_nfs_client_request_depend,$2)
allow $1 mount_t:udp_socket ioctl read getattr write setattr append bind connect getopt setopt shutdown;
')
define(`mount_send_nfs_client_request_depend',`
type mount_t;
class udp_socket { ioctl read getattr write setattr append bind connect getopt setopt shutdown };
')