diff --git a/device.te b/device.te index c155fcced3d4ad6c8c59ca4fa762ec11864df605..b2f4f1d32b5ba19cdc33ef6b7260f8da3729fca7 100644 --- a/device.te +++ b/device.te @@ -12,6 +12,7 @@ type loop_device, dev_type; type pmsg_device, dev_type, mlstrustedobject; type radio_device, dev_type; type ram_device, dev_type; +type rtc_device, dev_type; type vold_device, dev_type; type console_device, dev_type; type cpuctl_device, dev_type; diff --git a/file_contexts b/file_contexts index 9f895da08de1b4ffb3a856474710b3aedc03b32d..03be7b68f005edc8564d072a9095a79d3f7edddc 100644 --- a/file_contexts +++ b/file_contexts @@ -77,6 +77,7 @@ /dev/random u:object_r:random_device:s0 /dev/rpmsg-omx[0-9] u:object_r:rpmsg_device:s0 /dev/rproc_user u:object_r:rpmsg_device:s0 +/dev/rtc0 u:object_r:rtc_device:s0 /dev/snd(/.*)? u:object_r:audio_device:s0 /dev/socket(/.*)? u:object_r:socket_device:s0 /dev/socket/adbd u:object_r:adbd_socket:s0 diff --git a/system_server.te b/system_server.te index 7eb3dd3857dca9d36e60906d483197ab71e52e19..c95a1f028afada126f8134da33270eae4aaeb9f7 100644 --- a/system_server.te +++ b/system_server.te @@ -167,6 +167,7 @@ allow system_server usbaccessory_device:chr_file rw_file_perms; allow system_server video_device:dir r_dir_perms; allow system_server video_device:chr_file rw_file_perms; allow system_server adbd_socket:sock_file rw_file_perms; +allow system_server rtc_device:chr_file rw_file_perms; allow system_server audio_device:dir r_dir_perms; # write access needed for MIDI