apparmor profile is too restrictive and sabotages gpsfake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gpsd (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
gpsfake is a tool to replay gps data from a text file for testing, it is supplied with the gpsd-clients package and gpsfake and gpsd tries to communicate through a /dev/pts/* device, but apparmor blocks them
user@machine:
/usr/bin/
from distutils import spawn
Processing test.nmea
gpsfake: log cycle of test.nmea begins.
gpsfake: line 1: $GPGGA,
gpsfake: line 2: $GPGSA,
gpsfake: line 3: $GPRMC,
gpsfake: line 4: $GPGGA,
gpsfake: line 5: $GPGSA,
gpsd:ERROR: SER: read-only device open of /dev/pts/8 failed: Permission denied
gpsd:ERROR: /dev/pts/8: device activation failed, freeing device.
gpsfake: line 6: $GPRMC,
gpsfake: line 7: $GPGGA,
gpsfake: line 8: $GPGSA,
user@machine:~> gpscsv localhost:12947
time,lat,lon,altHAE
syslog:
Aug 23 14:58:08 machine kernel: [415183.738526] audit: type=1400 audit(169279548
Aug 23 14:58:08 machine kernel: [415183.738534] audit: type=1400 audit(169279548
Hello Aron and thanks for this bug report. This looks like a duplicate of LP: #1894330, which has been fixed in Hirsute but not in Focal as far as I can tell. As you running Focal? Are you able to test if the bug is fixed in Jammy?
This may be a candidate for a SRU (https:/ /wiki.ubuntu. com/StableRelea seUpdates) to Focal, but first we need to know if we're actually speaking of LP: #1894330. Thanks.