From 21844fa771505d9f31edc37682fb725efab049c5 Mon Sep 17 00:00:00 2001 From: Ady Abraham Date: Tue, 7 Jan 2020 16:35:39 -0800 Subject: [PATCH] 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 --- libcutils/fs_config.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libcutils/fs_config.cpp b/libcutils/fs_config.cpp index dc31b2830..65c59bd73 100644 --- a/libcutils/fs_config.cpp +++ b/libcutils/fs_config.cpp @@ -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.*" },