Skip to content
Snippets Groups Projects
Commit e4682a63 authored by Stephen Smalley's avatar Stephen Smalley
Browse files

Allow apps to write to /proc/net/xt_qtaguid/ctrl.

parent 6c39ee00
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,9 @@ allow appdomain wallpaper_file:file { read write }; ...@@ -103,6 +103,9 @@ allow appdomain wallpaper_file:file { read write };
allow appdomain anr_data_file:dir search; allow appdomain anr_data_file:dir search;
allow appdomain anr_data_file:file { open append }; allow appdomain anr_data_file:file { open append };
# Write to /proc/net/xt_qtaguid/ctrl file.
allow appdomain qtaguid:file write;
# Use the Binder. # Use the Binder.
binder_use(appdomain) binder_use(appdomain)
# Perform binder IPC to binder services. # Perform binder IPC to binder services.
......
...@@ -4,6 +4,7 @@ type pipefs, fs_type; ...@@ -4,6 +4,7 @@ type pipefs, fs_type;
type sockfs, fs_type; type sockfs, fs_type;
type rootfs, fs_type; type rootfs, fs_type;
type proc, fs_type; type proc, fs_type;
type qtaguid, fs_type, mlstrustedobject;
type selinuxfs, fs_type; type selinuxfs, fs_type;
type cgroup, fs_type, mlstrustedobject; type cgroup, fs_type, mlstrustedobject;
type sysfs, fs_type, mlstrustedobject; type sysfs, fs_type, mlstrustedobject;
......
...@@ -51,6 +51,7 @@ fs_use_trans mqueue u:object_r:mqueue:s0; ...@@ -51,6 +51,7 @@ fs_use_trans mqueue u:object_r:mqueue:s0;
genfscon rootfs / u:object_r:rootfs:s0 genfscon rootfs / u:object_r:rootfs:s0
# proc labeling can be further refined (longest matching prefix). # proc labeling can be further refined (longest matching prefix).
genfscon proc / u:object_r:proc:s0 genfscon proc / u:object_r:proc:s0
genfscon proc /net/xt_qtaguid/ctrl u:object_r:qtaguid:s0
# selinuxfs booleans can be individually labeled. # selinuxfs booleans can be individually labeled.
genfscon selinuxfs / u:object_r:selinuxfs:s0 genfscon selinuxfs / u:object_r:selinuxfs:s0
genfscon cgroup / u:object_r:cgroup:s0 genfscon cgroup / u:object_r:cgroup:s0
......
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