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