2005-05-02 19:24:29 +00:00
|
|
|
# Copyright (C) 2005 Tresys Technology, LLC
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# hotplug_transition(domain)
|
|
|
|
#
|
|
|
|
define(`hotplug_transition',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-05-02 19:24:29 +00:00
|
|
|
allow $1 hotplug_exec_t:file { getattr read execute };
|
|
|
|
allow $1 hotplug_t:process transition;
|
|
|
|
type_transition $1 hotplug_exec_t:file hotplug_t;
|
|
|
|
dontaudit $1 hotplug_t:process { noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`hotplug_transition_depend',`
|
|
|
|
type hotplug_t, hotplug_exec_t;
|
|
|
|
class file { getattr read execute };
|
|
|
|
class process { transition noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# hotplug_execute(domain)
|
|
|
|
#
|
|
|
|
define(`hotplug_execute',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-05-02 19:24:29 +00:00
|
|
|
allow $1 hotplug_exec_t:file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`hotplug_execute_depend',`
|
|
|
|
type hotplug_t;
|
|
|
|
class file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# hotplug_use_file_descriptors(domain)
|
|
|
|
#
|
|
|
|
define(`hotplug_use_file_descriptors',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-05-02 19:24:29 +00:00
|
|
|
allow $1 hotplug_t:fd use;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`hotplug_use_file_descriptors_depend',`
|
|
|
|
type hotplug_t;
|
|
|
|
class fd use;
|
|
|
|
')
|