Comment 3 for bug 1894330

Revision history for this message
Rob Norris (rw-norris) wrote :

I'm using Debian Unstable, but I assume it's the same issue.

Checking the system logs (e.g. via dmesg) reveals entries along the lines of:

audit: type=1400 audit(1606596824.706:63): apparmor="DENIED" operation="mknod" profile="/usr/sbin/gpsd" name="/tmp/gpsfake-5064.sock" pid=5065 comm="gpsd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0

Setting AppArmor for /usr/sbin/gpsd from enforce to complain mode gets gpsfake working again.
(as root):
aa-complain /usr/sbin/gpsd

HTH

NB1 To restore enforced mode (as root):
aa-enforce /usr/sbin/gpsd

NB I think the profile used is in /etc/apparmor.d/usr.sbin.gpsd (which is owned by the gpsd package).
But I don't know what should go in there.