|
Chris PeBenito |
b2b38c |
# Copyright (C) 2005 Tresys Technology, LLC
|
|
Chris PeBenito |
b2b38c |
|
|
Chris PeBenito |
b2b38c |
#######################################
|
|
Chris PeBenito |
b2b38c |
#
|
|
Chris PeBenito |
075c4f |
# clock_transition(domain)
|
|
Chris PeBenito |
075c4f |
#
|
|
Chris PeBenito |
075c4f |
define(`clock_transition',`
|
|
Chris PeBenito |
075c4f |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
075c4f |
allow $1 hwclock_exec_t:file { getattr read execute };
|
|
Chris PeBenito |
075c4f |
allow $1 hwclock_t:process transition;
|
|
Chris PeBenito |
075c4f |
type_transition $1 hwclock_exec_t:file hwclock_t;
|
|
Chris PeBenito |
075c4f |
dontaudit $1 hwclock_t:process { noatsecure siginh rlimitinh };
|
|
Chris PeBenito |
075c4f |
')
|
|
Chris PeBenito |
075c4f |
|
|
Chris PeBenito |
075c4f |
define(`clock_transition_depend',`
|
|
Chris PeBenito |
075c4f |
type hwclock_t, hwclock_exec_t;
|
|
Chris PeBenito |
075c4f |
class file { getattr read execute };
|
|
Chris PeBenito |
075c4f |
class process { transition noatsecure siginh rlimitinh };
|
|
Chris PeBenito |
075c4f |
')
|
|
Chris PeBenito |
075c4f |
|
|
Chris PeBenito |
075c4f |
#######################################
|
|
Chris PeBenito |
075c4f |
#
|
|
Chris PeBenito |
075c4f |
# clock_execute(domain)
|
|
Chris PeBenito |
075c4f |
#
|
|
Chris PeBenito |
075c4f |
define(`clock_execute',`
|
|
Chris PeBenito |
075c4f |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
075c4f |
allow $1 hwclock_exec_t:file { getattr read execute execute_no_trans };
|
|
Chris PeBenito |
075c4f |
')
|
|
Chris PeBenito |
075c4f |
|
|
Chris PeBenito |
075c4f |
define(`clock_execute_depend',`
|
|
Chris PeBenito |
075c4f |
type hwclock_exec_t;
|
|
Chris PeBenito |
075c4f |
class file { getattr read execute execute_no_trans };
|
|
Chris PeBenito |
075c4f |
')
|
|
Chris PeBenito |
075c4f |
|
|
Chris PeBenito |
075c4f |
#######################################
|
|
Chris PeBenito |
075c4f |
#
|
|
Chris PeBenito |
b2b38c |
# clock_modify_drift_records(domain)
|
|
Chris PeBenito |
b2b38c |
#
|
|
Chris PeBenito |
b2b38c |
define(`clock_modify_drift_records',`
|
|
Chris PeBenito |
b2b38c |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
b2b38c |
allow $1 adjtime_t:file { getattr read write ioctl lock append };
|
|
Chris PeBenito |
3ec805 |
files_read_general_system_config_directory($1)
|
|
Chris PeBenito |
b2b38c |
')
|
|
Chris PeBenito |
b2b38c |
|
|
Chris PeBenito |
b2b38c |
define(`clock_modify_drift_records_depend',`
|
|
Chris PeBenito |
b2b38c |
type adjtime_t;
|
|
Chris PeBenito |
b2b38c |
class file { getattr read write ioctl lock append };
|
|
Chris PeBenito |
b2b38c |
')
|