Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78659

QNetworkInterface::allAddresses() causes permission denied error on newer Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.12.4
    • Network
    • None
    • Android

    Description

      I retroshare-service we use QNetworkInterface::allAddresses() to get local ip addresses on Android platform as you can see here

      https://github.com/RetroShare/RetroShare/blob/master/libretroshare/src/pqi/pqinetwork.cc#L324

      Up until now it has worked like a charm and it seems to still someway work on recent Android but we get our logs flooded with this obnoxious message

      W org.retroshare.service:rs: type=1400 audit(0.0:20751): avc: denied { ioctl } for comm=7273206D61696E path="socket:[286375607]" dev="sockfs" ino=286375607 ioctlcmd=0x8b07 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:r:untrusted_app_25:s0:c512,c768 tclass=netlink_route_socket permissive=0
      

      While the permission in Android manifests seems correct I have been also fiddling adding more permissions that might be related without success, before I discovered the message came from the Qt library we have been tracking this issue here where you can find more informations:

      https://github.com/RetroShare/RetroShare/issues/1452

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            g10h4ck Gioacchino Mazzurco
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes