Skip to content
Snippets Groups Projects
Commit 36c87bbd authored by Geremy Condra's avatar Geremy Condra Committed by Android Git Automerger
Browse files

am ae0fcf1f: Merge "watchdog security policy."

* commit 'ae0fcf1f':
  watchdog security policy.
parents 9050e369 ae0fcf1f
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ type fuse_device, dev_type;
type ion_device, dev_type;
type gps_device, dev_type;
type qtaguid_device, dev_type;
type watchdog_device, dev_type;
# All devices have a uart for the hci
# attach service. The uart dev node
......
......@@ -104,6 +104,7 @@
/dev/urandom u:object_r:urandom_device:s0
/dev/vcs[0-9a-z]* u:object_r:vcs_device:s0
/dev/video[0-9]* u:object_r:video_device:s0
/dev/watchdog u:object_r:watchdog_device:s0
/dev/xt_qtaguid u:object_r:qtaguid_device:s0
/dev/zero u:object_r:zero_device:s0
#############################
......
# watchdogd seclabel is specified in init.<board>.rc
type watchdogd, domain;
allow watchdogd rootfs:file { entrypoint r_file_perms };
allow watchdogd self:capability mknod;
allow watchdogd device:dir { add_name write remove_name };
allow watchdogd watchdog_device:chr_file rw_file_perms;
# because of /dev/__kmsg__ and /dev/__null__
allow watchdogd device:chr_file create_file_perms;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment