diff --git a/private/file_contexts b/private/file_contexts index 6b6498424cd6373337454d381531c242ed8fad52..5433ea869243301283a1fdaef17187e80a684c73 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -104,7 +104,6 @@ /dev/ptmx u:object_r:ptmx_device:s0 /dev/pvrsrvkm u:object_r:gpu_device:s0 /dev/kmsg u:object_r:kmsg_device:s0 -/dev/kmsg_debug u:object_r:kmsg_debug_device:s0 /dev/null u:object_r:null_device:s0 /dev/nvhdcp1 u:object_r:video_device:s0 /dev/random u:object_r:random_device:s0 diff --git a/public/crash_dump.te b/public/crash_dump.te index 0bab782f1f2b7b3dc9a14934c9cfa89743c66625..a0e278a1347ba1d78265222228df4465e097f5be 100644 --- a/public/crash_dump.te +++ b/public/crash_dump.te @@ -15,9 +15,6 @@ dontaudit crash_dump self:capability { sys_ptrace }; userdebug_or_eng(` allow crash_dump logd:process { ptrace signal sigchld sigstop sigkill }; - - # Let crash_dump write to /dev/kmsg_debug crashes that happen before logd comes up. - allow crash_dump kmsg_debug_device:chr_file { open append }; ') # Use inherited file descriptors diff --git a/public/device.te b/public/device.te index 0f64bfabbfb16611e1bf5f91a7def6cb9e4b530d..4a3bec91f0bd14a6fd2bce9b5c2d05ca06d23833 100644 --- a/public/device.te +++ b/public/device.te @@ -36,7 +36,6 @@ type mtp_device, dev_type, mlstrustedobject; type nfc_device, dev_type; type ptmx_device, dev_type, mlstrustedobject; type kmsg_device, dev_type; -type kmsg_debug_device, dev_type; type null_device, dev_type, mlstrustedobject; type random_device, dev_type, mlstrustedobject; type sensors_device, dev_type; diff --git a/public/init.te b/public/init.te index 4571c491a34947ca52841b0b46ce95b92d190469..e293cefd53f61bac035b100d3234291e266a6b69 100644 --- a/public/init.te +++ b/public/init.te @@ -13,10 +13,6 @@ allow init tmpfs:chr_file { create setattr unlink rw_file_perms }; # /dev/kmsg allow init tmpfs:chr_file relabelfrom; allow init kmsg_device:chr_file { write relabelto }; -# /dev/kmsg_debug -userdebug_or_eng(` - allow init kmsg_debug_device:chr_file { write relabelto }; -') # /dev/__properties__ allow init properties_device:dir relabelto; allow init properties_serial:file { write relabelto };