## fake-hwclock - Control fake hardware clock. ######################################## ## ## Execute a domain transition to run fake-hwclock. ## ## ## ## Domain allowed to transition. ## ## # interface(`fakehwclock_domtrans',` refpolicywarn(`$0($*) has been deprecated') gen_require(` type fakehwclock_t, fakehwclock_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, fakehwclock_exec_t, fakehwclock_t) ') ######################################## ## ## Execute fake-hwclock in the fake-hwclock domain, ## and allow the specified role ## the fake-hwclock domain. ## ## ## ## Domain allowed to transition. ## ## ## ## ## Role allowed access. ## ## # interface(`fakehwclock_run',` refpolicywarn(`$0($*) has been deprecated') gen_require(` attribute_role fakehwclock_roles; ') fakehwclock_domtrans($1) roleattribute $2 fakehwclock_roles; ') ######################################## ## ## All the rules required to ## administrate an fake-hwclock environment. ## ## ## ## Domain allowed to transition. ## ## ## ## ## Role allowed access. ## ## # interface(`fakehwclock_admin',` gen_require(` type fakehwclock_t, fakehwclock_exec_t, fakehwclock_backup_t; type fakehwclock_initrc_exec_t, fakehwclock_unit_t; ') admin_process_pattern($1, fakehwclock_t) init_startstop_service($1, $2, fakehwclock_t, fakehwclock_initrc_exec_t, fakehwclock_unit_t) files_search_etc($1) admin_pattern($1, fakehwclock_backup_t) ')