Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aospb/root #2

Open
wants to merge 2 commits into
base: mm6.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sepolicy/su.te
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
type superuser_device, file_type;
type superuser_device, file_type, mlstrustedobject;

## Perms for the daemon

userdebug_or_eng(`
domain_trans(init, su_exec, sudaemon)

typeattribute sudaemon domain, mlstrustedsubject;

type_transition sudaemon socket_device:sock_file superuser_device;
# The userspace app uses /dev sockets to control per-app access
allow sudaemon superuser_device:dir { create rw_dir_perms setattr unlink };
Expand Down Expand Up @@ -39,6 +41,7 @@ userdebug_or_eng(`
dontaudit sudaemon domain:peer *;
dontaudit sudaemon domain:binder *;
dontaudit sudaemon property_type:property_service *;
dontaudit sudaemon appops_service:service_manager *;
')

## Perms for the app
Expand Down