fwknop service unable to start due to apparmor

Bug #1880009 reported by Fuel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fwknop (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I just set up fwknop on Ubuntu 20.04 Server, but unfortunately fwknop service does not start with the apparmor profile in enforcing (which is the standard mode). This gives following error:

[...]
Mai 12 17:19:08 audit[5272]: AVC apparmor="DENIED" operation="exec" profile="/usr/sbin/fwknopd" name="/usr/sbin/xtables-legacy-multi" pid=5272 comm="fwknopd" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mai 12 17:19:08 fwknopd[5272]: run_extcmd(): execvpe() failed: Permission denied
Mai 12 17:19:08 fwknopd[5242]: Warning: Could not use the 'comment' match
[...]
Mai 12 17:19:08 audit[5294]: AVC apparmor="DENIED" operation="exec" profile="/usr/sbin/fwknopd" name="/usr/sbin/xtables-legacy-multi" pid=5294 comm="fwknopd" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mai 12 17:19:08 fwknopd[5294]: run_extcmd(): execvpe() failed: Permission denied
Mai 12 17:19:08 systemd[1]: fwknop-server.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit fwknop-server.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Mai 12 17:19:08 systemd[1]: fwknop-server.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

Setting the fwknop apparmor profile to just complaining, enables me to start the service, but that is not a satisfying solution.

Revision history for this message
François Marier (fmarier) wrote :

I've just pushed out a fix for this in Debian unstable. Version 2.6.10-10 should work for you on Ubuntu 20.04:

https://packages.debian.org/unstable/fwknop-apparmor-profile

no longer affects: fwknop (Debian)
Changed in fwknop (Ubuntu):
status: New → Fix Committed
Revision history for this message
Fuel (fuel-h) wrote :

Thanks!

Lets hope it trickles down quickly to Ubuntu. The package version on 20.04 still is 2.6.10-8.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fwknop - 2.6.10-10

---------------
fwknop (2.6.10-10) unstable; urgency=medium

  * Remove PIDFile from systemd service since systemd tries to read that
    file before fwknopd has written to it.

 -- Francois Marier <email address hidden> Mon, 15 Jun 2020 20:16:27 -0700

Changed in fwknop (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.