blob: be193eae5c4d9096656eff3a51ddb852e0b4cda8 [file] [log] [blame]
rpcraigbac99922012-12-03 06:07:45 -05001# watchdogd seclabel is specified in init.<board>.rc
2type watchdogd, domain;
Stephen Smalley043b9022013-10-29 14:42:41 -04003allow watchdogd rootfs:file { entrypoint r_file_perms };
4allow watchdogd self:capability mknod;
5allow watchdogd device:dir { add_name write remove_name };
6allow watchdogd watchdog_device:chr_file rw_file_perms;
7# because of /dev/__kmsg__ and /dev/__null__
8write_klog(watchdogd)
9type_transition watchdogd device:chr_file null_device "__null__";
10allow watchdogd null_device:chr_file { create unlink };