Chris PeBenito dfb86a
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito dfb86a
Chris PeBenito dfb86a
#######################################
Chris PeBenito dfb86a
#
Chris PeBenito dfb86a
# udev_transition(domain,[`optional'])
Chris PeBenito dfb86a
#
Chris PeBenito dfb86a
define(`udev_transition',`
Chris PeBenito dfb86a
requires_block_template(udev_transition_depend,$2)
Chris PeBenito dfb86a
allow $1 udev_exec_t:file { getattr read execute };
Chris PeBenito dfb86a
allow $1 udev_t:process transition;
Chris PeBenito dfb86a
type_transition $1 udev_exec_t:file udev_t;
Chris PeBenito dfb86a
dontaudit $1 udev_t:process { noatsecure siginh rlimitinh };
Chris PeBenito dfb86a
')
Chris PeBenito dfb86a
Chris PeBenito dfb86a
define(`udev_transition_depend',`
Chris PeBenito dfb86a
type udev_t, udev_exec_t;
Chris PeBenito dfb86a
class file { getattr read execute };
Chris PeBenito dfb86a
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito dfb86a
')
Chris PeBenito dfb86a
Chris PeBenito dfb86a
########################################
Chris PeBenito dfb86a
#
Chris PeBenito dfb86a
# udev_read_database(domain,[`optional'])
Chris PeBenito dfb86a
#
Chris PeBenito dfb86a
define(`udev_read_database',`
Chris PeBenito dfb86a
requires_block_template(udev_read_database_depend,$2)
Chris PeBenito dfb86a
allow $1 udev_tdb_t:file { getattr read };
Chris PeBenito dfb86a
')
Chris PeBenito dfb86a
Chris PeBenito dfb86a
define(`udev_read_database_depend',`
Chris PeBenito dfb86a
type udev_tdb_t;
Chris PeBenito dfb86a
class file { getattr read };
Chris PeBenito dfb86a
')