Public bug reported:

The manual page of gpsd states

       When a device is activated (i.e. a client requests data from it), gpsd 
attempts to execute a hook from /etc/gpsd/device-hook with first command line 
argument set to the pathname of the
       device and the second to ACTIVATE. On deactivation it does the same 
passing DEACTIVATE for the second argument.

and when such an executable is present, the debug info/log of gpsd
indicates that /etc/gpsd/device-hook is being called and exits with
state 0.  However, this is a lie.

I assume that there is a suitable line missing in

/etc/apparmor.d/usr.sbin.gpsd

but my apparmor-foo is not sufficient to figure out what incantation is
required to allow gpsd executing this hook.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gpsd 3.20-5ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-18.22-lowlatency 5.4.24
Uname: Linux 5.4.0-18-lowlatency x86_64
ApportVersion: 2.20.11-0ubuntu20
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Mar 21 09:00:23 2020
InstallationDate: Installed on 2011-10-14 (3080 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
SourcePackage: gpsd
UpgradeStatus: Upgraded to focal on 2020-03-09 (11 days ago)

** Affects: gpsd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apparmor apport-bug focal

** Tags added: apparmor

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1868363

Title:
  /etc/gpsd/device-hook not actually called

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gpsd/+bug/1868363/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to