Merge "Allow psi monitor users to setched kernel threads" into qt-dev

This commit is contained in:
TreeHugger Robot 2019-05-02 14:48:56 +00:00 committed by Android (Google) Code Review
commit 6f1800f6df
2 changed files with 5 additions and 3 deletions

View file

@ -123,6 +123,9 @@ allow system_server hal_camera:process { getsched setsched };
allow system_server mediaserver:process { getsched setsched };
allow system_server bootanim:process { getsched setsched };
# Set scheduling info for psi monitor thread.
allow system_server kernel:process { getsched setsched };
# Allow system_server to write to /proc/<pid>/*
allow system_server domain:file w_file_perms;

View file

@ -481,9 +481,8 @@ allow init self:udp_socket { create ioctl };
allowxperm init self:udp_socket ioctl SIOCSIFFLAGS;
allow init self:global_capability_class_set net_raw;
# This line seems suspect, as it should not really need to
# set scheduling parameters for a kernel domain task.
allow init kernel:process setsched;
# Set scheduling info for psi monitor thread.
allow init kernel:process { getsched setsched };
# swapon() needs write access to swap device
# system/core/fs_mgr/fs_mgr.c - fs_mgr_swapon_all