HIYJOKOU
HIYJOKOU

Reputation: 53

LogCat - E/SELinux: avc: denied { find }

LogCat shows me this message every second

Any ideas on how to repair this error?

2021-01-17 17:41:08.905 174-174/? E/SELinux: avc:  denied  { find } for pid=25449 uid=2000 name=car_service scontext=u:r:shell:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0
2021-01-17 17:41:09.903 174-174/? E/SELinux: avc:  denied  { find } for pid=25455 uid=2000 name=car_service scontext=u:r:shell:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0

Upvotes: 5

Views: 11249

Answers (2)

Subhrajyoti Sen
Subhrajyoti Sen

Reputation: 1735

This is a SELinux denial. You can ignore it as it won't affect your app. There isn't anything you can do about it (at a user level).

If you are using a custom ROM, the maintainer needs to update their sepolicy.

If you are the maintainer, there are detailed guides on how to understand the denials and write the appropriate the rules for them. One such guide is https://web.archive.org/web/20210116111344/https://msfjarvis.dev/posts/understanding-and-resolving-selinux-denials-on-android/.

If you have any specific doubts in writing the correct rule for this, you can update the question.

Upvotes: 10

AntonK
AntonK

Reputation: 1310

I had a lot of such errors on my Realme 8i with Android 11 (on a stock firmare) but for another name - tethering:

2023-01-01 15:34:33.134 501 501 system E SELinux : avc:  denied  { find } for pid=22576
 uid=10219 name=tethering scontext=u:r:permissioncontroller_app:s0:c219,c256,c512,c768
 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0

Disabling Tethering hardware acceleration in Developer options immediately stopped such spam.

Upvotes: 1

Related Questions