Skip to content
Snippets Groups Projects
Commit 48b7e97d authored by Stephen Smalley's avatar Stephen Smalley Committed by Android Git Automerger
Browse files

am cac0b7d6: am c0845036: Remove sys_nice capability from domains.

* commit 'cac0b7d6':
  Remove sys_nice capability from domains.
parents 03566840 cac0b7d6
No related branches found
No related tags found
No related merge requests found
...@@ -10,9 +10,6 @@ allow domain tmpfs:file { read getattr }; ...@@ -10,9 +10,6 @@ allow domain tmpfs:file { read getattr };
# Search /storage/emulated tmpfs mount. # Search /storage/emulated tmpfs mount.
allow domain tmpfs:dir r_dir_perms; allow domain tmpfs:dir r_dir_perms;
# binder adjusts the nice value during IPC.
allow domain self:capability sys_nice;
# Intra-domain accesses. # Intra-domain accesses.
allow domain self:process ~{ execstack execheap ptrace }; allow domain self:process ~{ execstack execheap ptrace };
allow domain self:fd use; allow domain self:fd use;
......
...@@ -8,6 +8,22 @@ permissive system; ...@@ -8,6 +8,22 @@ permissive system;
unconfined_domain(system); unconfined_domain(system);
relabelto_domain(system); relabelto_domain(system);
# These are the capabilities assigned by the zygote to the
# system server.
allow system self:capability {
kill
net_admin
net_bind_service
net_broadcast
net_raw
sys_boot
sys_module
sys_nice
sys_resource
sys_time
sys_tty_config
};
# Create a socket for receiving info from wpa. # Create a socket for receiving info from wpa.
type_transition system wifi_data_file:sock_file system_wpa_socket; type_transition system wifi_data_file:sock_file system_wpa_socket;
allow system self:zygote { specifyids specifyrlimits specifyseinfo }; allow system self:zygote { specifyids specifyrlimits specifyseinfo };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment