Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
a3e85728
Commit
a3e85728
authored
7 years ago
by
Tri Vo
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "priv_app: remove access to 'proc' and 'sysfs' types."
parents
4f6eb37f
f92cfb9e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/domain.te
+0
-2
0 additions, 2 deletions
private/domain.te
private/priv_app.te
+12
-3
12 additions, 3 deletions
private/priv_app.te
with
12 additions
and
5 deletions
private/domain.te
+
0
−
2
View file @
a3e85728
...
...
@@ -25,7 +25,6 @@ full_treble_only(`
neverallow {
coredomain
-dumpstate
-priv_app
-vold
-vendor_init
} proc:file no_rw_file_perms;
...
...
@@ -35,7 +34,6 @@ full_treble_only(`
coredomain
-dumpstate
-init
-priv_app
-ueventd
-vold
-vendor_init
...
...
This diff is collapsed.
Click to expand it.
private/priv_app.te
+
12
−
3
View file @
a3e85728
...
...
@@ -77,9 +77,17 @@ userdebug_or_eng(`
allow priv_app vold:fd use;
allow priv_app fuse_device:chr_file { read write };
# /sys and /proc access
r_dir_file(priv_app, sysfs_type)
r_dir_file(priv_app, proc)
# /proc access
allow priv_app {
proc_vmstat
}:file r_file_perms;
allow priv_app sysfs_type:dir search;
# Read access to /sys/class/net/wlan*/address
r_dir_file(priv_app, sysfs_net)
# Read access to /sys/block/zram*/mm_stat
r_dir_file(priv_app, sysfs_zram)
r_dir_file(priv_app, rootfs)
# Allow GMS core to open kernel config for OTA matching through libvintf
...
...
@@ -129,6 +137,7 @@ unix_socket_connect(priv_app, traced_producer, traced)
# suppress denials for non-API accesses.
dontaudit priv_app exec_type:file getattr;
dontaudit priv_app device:dir read;
dontaudit priv_app proc:file read;
dontaudit priv_app proc_interrupts:file read;
dontaudit priv_app proc_modules:file read;
dontaudit priv_app proc_version:file read;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment