Skip to content
Snippets Groups Projects
Commit 530e168c authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Add /dev/kmsg_debug.

am: 94e2a921

Change-Id: I3cb9bd4305fe3f6d720f757a232d4bb38de98895
parents 881fe06f 94e2a921
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,7 @@ ...@@ -107,6 +107,7 @@
/dev/ptmx u:object_r:ptmx_device:s0 /dev/ptmx u:object_r:ptmx_device:s0
/dev/pvrsrvkm u:object_r:gpu_device:s0 /dev/pvrsrvkm u:object_r:gpu_device:s0
/dev/kmsg u:object_r:kmsg_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/null u:object_r:null_device:s0
/dev/nvhdcp1 u:object_r:video_device:s0 /dev/nvhdcp1 u:object_r:video_device:s0
/dev/random u:object_r:random_device:s0 /dev/random u:object_r:random_device:s0
......
...@@ -15,6 +15,9 @@ dontaudit crash_dump self:capability { sys_ptrace }; ...@@ -15,6 +15,9 @@ dontaudit crash_dump self:capability { sys_ptrace };
userdebug_or_eng(` userdebug_or_eng(`
allow crash_dump logd:process { ptrace signal sigchld sigstop sigkill }; 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 # Use inherited file descriptors
......
...@@ -36,6 +36,7 @@ type mtp_device, dev_type, mlstrustedobject; ...@@ -36,6 +36,7 @@ type mtp_device, dev_type, mlstrustedobject;
type nfc_device, dev_type; type nfc_device, dev_type;
type ptmx_device, dev_type, mlstrustedobject; type ptmx_device, dev_type, mlstrustedobject;
type kmsg_device, dev_type; type kmsg_device, dev_type;
type kmsg_debug_device, dev_type;
type null_device, dev_type, mlstrustedobject; type null_device, dev_type, mlstrustedobject;
type random_device, dev_type, mlstrustedobject; type random_device, dev_type, mlstrustedobject;
type sensors_device, dev_type; type sensors_device, dev_type;
......
...@@ -13,6 +13,10 @@ allow init tmpfs:chr_file { create setattr unlink rw_file_perms }; ...@@ -13,6 +13,10 @@ allow init tmpfs:chr_file { create setattr unlink rw_file_perms };
# /dev/kmsg # /dev/kmsg
allow init tmpfs:chr_file relabelfrom; allow init tmpfs:chr_file relabelfrom;
allow init kmsg_device:chr_file { write relabelto }; 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__ # /dev/__properties__
allow init properties_device:dir relabelto; allow init properties_device:dir relabelto;
allow init properties_serial:file { write relabelto }; allow init properties_serial:file { write relabelto };
......
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