Comment 9 for bug 1790496

Revision history for this message
Alex Murray (alexmurray) wrote :

I can reproduce this by running:

sudo gpsdctl add /dev/ttyUSB0

even without a /dev/ttyUSB0 device being present. We can then resolve the AppArmor denial by adding something like:

  /{,var/}run/gpsd.sock rw,

to the AppArmor profile - so that this remains if the package provided profile gets replaced on a package upgrade, please try adding the above line to the file /etc/apparmor.d/local/usr.sbin.gpsd and then reload the AppArmor profile by running

sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.gpsd

And finally then see if you can add the device as expected. If this resolves the issue then I suggest this be added to the standard GPSD AppArmor profile via an SRU.