|
Chris PeBenito |
b5ab18 |
# Copyright (C) 2005 Tresys Technology, LLC
|
|
Chris PeBenito |
b5ab18 |
|
|
Chris PeBenito |
b5ab18 |
#######################################
|
|
Chris PeBenito |
b5ab18 |
#
|
|
Chris PeBenito |
bd202f |
# mount_transition(domain)
|
|
Chris PeBenito |
b5ab18 |
#
|
|
Chris PeBenito |
b5ab18 |
define(`mount_transition',`
|
|
Chris PeBenito |
bd202f |
requires_block_template(`$0'_depend)
|
|
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 |
bd202f |
# mount_use_file_descriptors(domain)
|
|
Chris PeBenito |
b5ab18 |
#
|
|
Chris PeBenito |
b5ab18 |
define(`mount_use_file_descriptors',`
|
|
Chris PeBenito |
bd202f |
requires_block_template(`$0'_depend)
|
|
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 |
bd202f |
# mount_send_nfs_client_request(domain)
|
|
Chris PeBenito |
b5ab18 |
#
|
|
Chris PeBenito |
b5ab18 |
define(`mount_send_nfs_client_request',`
|
|
Chris PeBenito |
bd202f |
requires_block_template(`$0'_depend)
|
|
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 |
')
|