You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see SELinux spamming type=1400 audit(0.0:1227): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tclass=netlink_route_socket permissive=0 bug=b/155595000 app=com.anytypeio.anytype.debug
error message in our application.
Details
We are developing Go-based application that uses libp2p to sync data in IPFS. Application has Android interface, so Go-package is being packed in Android archieve .aar and transferred as static library to Android application.
While running our app on Emulator in Logcat interface of Android Studio we see warning messages type=1400 audit(0.0:1227): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tclass=netlink_route_socket permissive=0 bug=b/155595000 app=com.anytypeio.anytype.debug
appearing every 2 minutes and stating that some process is trying to get access to some addresses. 30+ version of Android SDK does not allow to gain such permisiions.
About
I see SELinux spamming
type=1400 audit(0.0:1227): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tclass=netlink_route_socket permissive=0 bug=b/155595000 app=com.anytypeio.anytype.debug
error message in our application.
Details
We are developing Go-based application that uses libp2p to sync data in IPFS. Application has Android interface, so Go-package is being packed in Android archieve .aar and transferred as static library to Android application.
While running our app on Emulator in Logcat interface of Android Studio we see warning messages
type=1400 audit(0.0:1227): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c148,c256,c512,c768 tclass=netlink_route_socket permissive=0 bug=b/155595000 app=com.anytypeio.anytype.debug
appearing every 2 minutes and stating that some process is trying to get access to some addresses. 30+ version of Android SDK does not allow to gain such permisiions.
Commenting out this code block has leaded to log spam vanishing:
https://github.com/libp2p/go-libp2p-kad-dht/blob/master/dht_filters.go#L143
Possible cause
Presumably netroute.New() call is the issue of OS warning as it is trying to get RIB data using syscall.NetlinkRIB call inside, which is a known issue:
tailscale/tailscale-android#21
and connected with changes to network information availability in Android 11+:
https://developer.android.com/training/articles/user-data-ids#mac-11-plus
Pkg version Information (go list -m all)
System Information (go env)
Dev tools versions info
The text was updated successfully, but these errors were encountered: