summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Veit <claymore1298@gmail.com>2022-10-14 08:08:16 +0200
committerJulian Veit <claymore1298@gmail.com>2022-10-14 11:40:44 +0200
commite7ee39fae064f641df7c6ba026a0fcdc2bcc3639 (patch)
tree85ccd8b4ab27a4a259805d9aefca4012ac9cce94
parent187a14047e37b0944ddd12b947bd7998b1b77fbc (diff)
aicp: vendor: fix system_server related denialss12.1
due some unknown reasons, memory of system_server grows, till no memory is left and system_server dies and restarts. 08 09:06:59.282 5976 5976 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 10-08 09:06:59.283 5976 5976 F DEBUG : Build fingerprint: 'OnePlus/OnePlus7TPro/OnePlus7TPro:11/RKQ1.201022.002/2206171336:user/release-keys' 10-08 09:06:59.283 5976 5976 F DEBUG : Revision: '0' 10-08 09:06:59.283 5976 5976 F DEBUG : ABI: 'arm64' 10-08 09:06:59.283 5976 5976 F DEBUG : Timestamp: 2022-10-08 09:06:56.914136911+0200 10-08 09:06:59.283 5976 5976 F DEBUG : Process uptime: 0s 10-08 09:06:59.283 5976 5976 F DEBUG : Cmdline: system_server 10-08 09:06:59.283 5976 5976 F DEBUG : pid: 1401, tid: 5580, name: Binder:1401_18 >>> system_server <<< 10-08 09:06:59.283 5976 5976 F DEBUG : uid: 1000 10-08 09:06:59.283 5976 5976 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- 10-08 09:06:59.283 5976 5976 F DEBUG : Abort message: 'Scudo ERROR: internal map failure (NO MEMORY) requesting 4KB 10-08 09:06:59.283 5976 5976 F DEBUG : ' In log er see related denials like: 10-13 07:40:39.834 21365 21365 I Thread-13514: type=1400 audit(0.0:90000): avc: denied { getattr } for scontext=u:r:system_server:s0 tcontext=u:r:hal_vibrator_default:s0 tclass=process permissive=1 by fixing those, memory of system_server don't grow anymore and system runs stable. 1:00 PM 1426 system 18 -2 18G 485M 485M S 6.0 6.4 7:04.12 system_server 2:00 PM 1426 system 18 -2 18G 500M 500M S 2.0 6.7 9:21.05 system_server 3:00 PM 1426 system 18 -2 18G 508M 508M S 3.6 6.8 11:59.39 system_server 4:00 PM 1426 system 18 -2 18G 499M 499M S 9.0 6.6 16:30.72 system_server 5:00 PM 1426 system 18 -2 18G 495M 495M S 6.0 6.6 22:36.21 system_server 6:30 PM 1426 system 18 -2 18G 490M 490M S 14.7 6.5 30:53.66 system_server 8:00 PM 1426 system 18 -2 18G 496M 496M S 15.1 6.6 42:31.00 system_server 8:30 AM 1426 system 18 -2 18G 485M 485M S 59.3 6.5 69:26.64 system_server Change-Id: Ia81d61794309dd993f4e96ff611d8e583e6a2e35
-rw-r--r--common/vendor/system_server.te6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/vendor/system_server.te b/common/vendor/system_server.te
new file mode 100644
index 0000000..8230f46
--- /dev/null
+++ b/common/vendor/system_server.te
@@ -0,0 +1,6 @@
+# Media_extractor
+allow system_server mediaextractor:process { getattr };
+
+# Vibrator
+allow system_server hal_vibrator_default:process { getattr };
+