Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:fuseblk:s0 tclass=file permissive=1 #43

Open
roundaboutluke opened this issue Oct 10, 2023 · 2 comments

Comments

@roundaboutluke
Copy link
Contributor

roundaboutluke commented Oct 10, 2023

avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:fuseblk:s0 tclass=file permissive=1

This error happens at this part of the script on A9.

# download atlas /system/bin/rm -f /sdcard/Download/atlas.apk until $download /sdcard/Download/atlas.apk $url/apk/PokemodAtlas-Public-$aversions.apk || { echo "date +%Y-%m-%d_%T $download /sdcard/Download/atlas.apk $url/apk/PokemodAtlas-Public-$aversions.apk" >> $logfile ; logger "download atlas failed, exit script" ; exit 1; } ;do sleep 2 done

We know it's here because it appears in atlas-install.log in addition to aconf.log

cat atlas-install.log avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:fuseblk:s0 tclass=file permissive=1 Success [2023-10-07T19:13:27 GMT] Installed Atlas [2023-10-07T19:13:27 GMT] Magisk policy set so that Atlas can become root. [2023-10-07T19:13:27 GMT] Done.

This was not modified, so believe it's a9 related in some way, shape or form but I know nothing about selinux.

Doesn't appear to stop the script continuing and no idea if it has any actual impact, but it's an error none the less.

@roundaboutluke
Copy link
Contributor Author

Some quick googling states “ A Permissive SELinux writes that Log BUT allow the access.

Fairly certain we couldn’t use enforcing SELinux for half of what we’re doing anyway, so I believe the error can be ignored but should be documented regardless.

@TechG3n
Copy link
Owner

TechG3n commented Oct 11, 2023

Just notes From https://discord.com/channels/1157716541828243506/1157716648090947694/1161700546554626171

_Issue 2:
avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=1

Workaround 2:
change location of APK from /sdcard/Download to /data/local/tmp__

Maybe we need to download to another location and move the script then..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants