SurfaceFlinger: migrate capabilities to surfaceflinger.rc
SurfaceFlinger requires CAP_SYS_NICE which is set in libcutils/fs_config.cpp. This is the old way of setting capabilities and new the way is to set it directly on surfaceflnger.rc Test: adb shell /data/nativetest64/SurfaceFlinger_test/SurfaceFlinger_test Test: adb shell stop surfaceflinger && adb shell start surfaceflinger Bug: 147271477 Change-Id: I680509a385928a9c929d4fe4857118af219e2b13
This commit is contained in:
parent
4d82b283dd
commit
21844fa771
|
@ -196,10 +196,6 @@ static const struct fs_path_config android_files[] = {
|
|||
{ 00750, AID_ROOT, AID_SHELL, CAP_MASK_LONG(CAP_SETUID) |
|
||||
CAP_MASK_LONG(CAP_SETGID),
|
||||
"system/bin/simpleperf_app_runner" },
|
||||
|
||||
// Support FIFO scheduling mode in SurfaceFlinger.
|
||||
{ 00755, AID_SYSTEM, AID_GRAPHICS, CAP_MASK_LONG(CAP_SYS_NICE),
|
||||
"system/bin/surfaceflinger" },
|
||||
// generic defaults
|
||||
{ 00755, AID_ROOT, AID_ROOT, 0, "bin/*" },
|
||||
{ 00640, AID_ROOT, AID_SHELL, 0, "fstab.*" },
|
||||
|
|
Loading…
Reference in New Issue