Skip to content
Snippets Groups Projects
Commit 528da6fe authored by Tri Vo's avatar Tri Vo
Browse files

Explicitly label logd's dependencies in /proc.

labeled /proc/kmsg as proc_kmsg, changed logd's access from proc to
proc_kmsg, and added a compat mapping.

Bug: 65643247
Test: device boots without selinux denials to the newly introduced proc_kmsg
Test: logd-unit-tests passes
Change-Id: I92c9f5694289eb6a94c4d90f14e2de4d46b5228e
parent 3d908fa6
No related branches found
No related tags found
No related merge requests found
...@@ -446,7 +446,7 @@ ...@@ -446,7 +446,7 @@
(typeattributeset preopt2cachename_exec_26_0 (preopt2cachename_exec)) (typeattributeset preopt2cachename_exec_26_0 (preopt2cachename_exec))
(typeattributeset print_service_26_0 (print_service)) (typeattributeset print_service_26_0 (print_service))
(typeattributeset priv_app_26_0 (mediaprovider priv_app)) (typeattributeset priv_app_26_0 (mediaprovider priv_app))
(typeattributeset proc_26_0 (proc proc_uid_time_in_state)) (typeattributeset proc_26_0 (proc proc_uid_time_in_state proc_kmsg))
(typeattributeset proc_bluetooth_writable_26_0 (proc_bluetooth_writable)) (typeattributeset proc_bluetooth_writable_26_0 (proc_bluetooth_writable))
(typeattributeset proc_cpuinfo_26_0 (proc_cpuinfo)) (typeattributeset proc_cpuinfo_26_0 (proc_cpuinfo))
(typeattributeset proc_drop_caches_26_0 (proc_drop_caches)) (typeattributeset proc_drop_caches_26_0 (proc_drop_caches))
......
...@@ -5,6 +5,7 @@ genfscon proc / u:object_r:proc:s0 ...@@ -5,6 +5,7 @@ genfscon proc / u:object_r:proc:s0
genfscon proc /config.gz u:object_r:config_gz:s0 genfscon proc /config.gz u:object_r:config_gz:s0
genfscon proc /interrupts u:object_r:proc_interrupts:s0 genfscon proc /interrupts u:object_r:proc_interrupts:s0
genfscon proc /iomem u:object_r:proc_iomem:s0 genfscon proc /iomem u:object_r:proc_iomem:s0
genfscon proc /kmsg u:object_r:proc_kmsg:s0
genfscon proc /meminfo u:object_r:proc_meminfo:s0 genfscon proc /meminfo u:object_r:proc_meminfo:s0
genfscon proc /misc u:object_r:proc_misc:s0 genfscon proc /misc u:object_r:proc_misc:s0
genfscon proc /modules u:object_r:proc_modules:s0 genfscon proc /modules u:object_r:proc_modules:s0
......
...@@ -16,6 +16,7 @@ type proc_bluetooth_writable, fs_type; ...@@ -16,6 +16,7 @@ type proc_bluetooth_writable, fs_type;
type proc_cpuinfo, fs_type; type proc_cpuinfo, fs_type;
type proc_interrupts, fs_type; type proc_interrupts, fs_type;
type proc_iomem, fs_type; type proc_iomem, fs_type;
type proc_kmsg, fs_type;
type proc_meminfo, fs_type; type proc_meminfo, fs_type;
type proc_misc, fs_type; type proc_misc, fs_type;
type proc_modules, fs_type; type proc_modules, fs_type;
......
...@@ -4,7 +4,7 @@ type logd_exec, exec_type, file_type; ...@@ -4,7 +4,7 @@ type logd_exec, exec_type, file_type;
# Read access to pseudo filesystems. # Read access to pseudo filesystems.
r_dir_file(logd, cgroup) r_dir_file(logd, cgroup)
r_dir_file(logd, proc) r_dir_file(logd, proc_kmsg)
r_dir_file(logd, proc_meminfo) r_dir_file(logd, proc_meminfo)
r_dir_file(logd, proc_net) r_dir_file(logd, proc_net)
......
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