Your message dated Thu, 26 Dec 2019 10:34:33 +0000
with message-id <[email protected]>
and subject line Bug#947281: fixed in inspircd 3.4.0-2
has caused the Debian Bug report #947281,
regarding inspircd: fails to start due to apparmor policy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
947281: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947281
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: inspircd
Version: 3.4.0-1
Severity: important
Tags: patch

Dear Maintainer,

The AppArmor policy that is included with the unstable inspircd package
specifies an incorrect path to the pidfile for the inspircd daemon.

As a result AppArmor blocks inspircd from writing its own pidfile
during launch, causing startup to fail. This can be reproduced with
'apt-get install inspircd' and then 'journalctl -u inspircd.service'
on a fresh unstable machine (with AppArmor enabled).

  systemd[1]: Starting InspIRCd - Internet Relay Chat Daemon...
  inspircd[10533]: InspIRCd - Internet Relay Chat Daemon
  inspircd[10533]: For contributors & authors: See /INFO Output
  systemd[1]: inspircd.service: Can't open PID file /run/inspircd/inspircd.pid 
(yet?) after start: Operation not permitted
  systemd[1]: inspircd.service: Failed with result 'protocol'.
  systemd[1]: Failed to start InspIRCd - Internet Relay Chat Daemon.

This issue appears to have been introduced in unstable when the pidfile
path was changed from /run/inspircd.pid to /run/inspircd/inspircd.pid in
all locations except the AppArmor policy.

The fix is straightforward:

  Index: inspircd-3.4.0/debian/apparmor/usr.sbin.inspircd
  ===================================================================
  --- inspircd-3.4.0.orig/debian/apparmor/usr.sbin.inspircd
  +++ inspircd-3.4.0/debian/apparmor/usr.sbin.inspircd
  @@ -22,7 +22,7 @@
     /etc/ldap/ldap.conf r,

     # pidfile used by inspircd.
  -  /run/inspircd.pid w,
  +  /run/inspircd/inspircd.pid w,

     # we need to be able to write to the log file
     # and also the old log when logrotate happends

Christian

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--- End Message ---
--- Begin Message ---
Source: inspircd
Source-Version: 3.4.0-2

We believe that the bug you reported is fixed in the latest version of
inspircd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christoph Biedl <[email protected]> (supplier of updated inspircd 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 24 Dec 2019 21:25:26 +0100
Source: inspircd
Architecture: source
Version: 3.4.0-2
Distribution: unstable
Urgency: medium
Maintainer: Christoph Biedl <[email protected]>
Changed-By: Christoph Biedl <[email protected]>
Closes: 947281
Changes:
 inspircd (3.4.0-2) unstable; urgency=medium
 .
   * Fix the pidfile location for apparmor support. Closes: #947281
Checksums-Sha1:
 7ee6dcd070ff10b48a3f26a882ca36890f7415b2 2004 inspircd_3.4.0-2.dsc
 1251e8755ba6f4cb693c080728f28515acd61abf 13484 inspircd_3.4.0-2.debian.tar.xz
 85199c441fb56bf39cca7ca6a0b3770c0cad5418 7384 
inspircd_3.4.0-2_powerpc.buildinfo
Checksums-Sha256:
 5f6ad1e020710f4f8a502eeaa3f26ac260172a2b1f3db6ac6b576b925d0123d2 2004 
inspircd_3.4.0-2.dsc
 916ab7a50dc9536d0fb2841d6eb9123fffb2c508809d871a24fe51bd376eb187 13484 
inspircd_3.4.0-2.debian.tar.xz
 8e6775175ff0323025635ee82327821a724bc8a3465c6dc6988f743f8d9425c7 7384 
inspircd_3.4.0-2_powerpc.buildinfo
Files:
 31c107517e6adf8d2ef988f4cb72f92c 2004 net optional inspircd_3.4.0-2.dsc
 54388363c16eb4664904b62d470713fd 13484 net optional 
inspircd_3.4.0-2.debian.tar.xz
 3c9b12a894bcf93e6a8e5dea4e1e47be 7384 net optional 
inspircd_3.4.0-2_powerpc.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEWXMI+726A12MfJXdxCxY61kUkv0FAl4Eh10ACgkQxCxY61kU
kv2zuA/9G4PwziOjvo+nrMYAbqhnXzkygE0AJ2IEp0ZdU9BeJDeGxoddnOsUeUGK
Z4lLmgLp5lW2MAtA2HKmFUzLCi/ESVZJNxc8n21p/RpB2gnXvEFtjYZ10F5Wgs2A
oqDzl2SOrJF97r6HSJA1T+ucB0+DNONGUu57f0GWz+DvCdYFSFsVNM+4NS/4O+oJ
GkeaYKEaYZdwPJGxUxdd62zCHfHqJmIMBwRQ3CUVh5OjBJ63uqqBkh6uoRP7FZVH
lXCg6qqtjSvywLDDwHR5b+h41CwiGiAG0NL7yc3wpeYf7DlWOCI1xOr3WTY1lyDY
mlaXpIuJqqJ810zmW7Kz1iSQlNfmzMKYaJYHI4S6KXBNu2P2mmsdVC03h4TKeouD
8DgKIq+uqzW8c3G9JakuhxiBFbENHOlFCfZxdvQPP7NoVyiFMxwoAlmx15naC4R+
mKM9a/1Q2kOm05WoFWNhk4JcpYiWj11+R4axBOQi7G52WNMXQI9Yg3bRDDSIiTsd
RUY9ue/+1PL1bRSzBi20403PcEvEPxj/EdUbaEVHVvrHzvdIXH2F5EwDG7aq47jJ
/7DyRZOolNRTVKxfZ2BiHnV2h4PU/s5O2E6BG7TnSAOEeGmfpQlzMI/6OAuBsNcj
oXPGZpcBFQCjXnSNG0zHRswsCKOiRCmk1HOB/PLcIdChyOEL4AA=
=TUTo
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to