initial commit

This commit is contained in:
Chris PeBenito 2005-04-28 13:41:37 +00:00
parent 55f4564e31
commit b5ab18b3f1
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Copyright (C) 2005 Tresys Technology, LLC
########################################
#
# mount file contexts
#
/bin/mount.* -- system_u:object_r:mount_exec_t
/bin/umount.* -- system_u:object_r:mount_exec_t

View File

@ -0,0 +1,47 @@
# 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 };
')