On Sat, Apr 24, 2021 at 01:06:04PM +0200, Chris Hofstaedtler wrote:
> Source: mosquitto
> Version: 2.0.10-4
> Severity: serious
> 
> Dear Maintainer,
> 
> your autopkgtest appears to fail:
> 
> autopkgtest [21:45:54]: test library: [-----------------------
> pkill: killing pid 1764 failed: Operation not permitted
> make: Entering directory 
> '/tmp/autopkgtest-lxc.zrj4yodu/downtmp/build.er2/src/test/lib'
> [..]
> autopkgtest [21:46:36]: test library: -----------------------]
> autopkgtest [21:46:36]: test library:  - - - - - - - - - - results - - - - - 
> - - - - -
> library              FAIL stderr: pkill: killing pid 1764 failed: Operation 
> not permitted
> autopkgtest [21:46:36]: test library:  - - - - - - - - - - stderr - - - - - - 
> - - - -
> pkill: killing pid 1764 failed: Operation not permitted
> 
> I do not quite understand what the pkill -x mosquitto is good for in
> the tests, but certainly it does not work.
> 
> Filing as serious, as this prevents migration to testing.
> 
> Chris
> 

I'm not a maintainer, but I see that in the code the command does what
it intends to do, checks out with the man pages although I haven't read
it myself:

# Tell Mosquitto to reload certificates and configuration
pkill -HUP -x mosquitto

Additionally, this code looks like it should work:

# Set ownership to Mosquitto
chown mosquitto: /etc/mosquitto/certs/server.pem \
                /etc/mosquitto/certs/server.key

# Ensure permissions are restrictive
chmod 0600 \
        /etc/mosquitto/certs/server.pem \
        /etc/mosquitto/certs/server.key

But I think this is more accurate (omitting the ":"):

chown mosquitto /etc/mosquitto/certs/server.pem \
                /etc/mosquitto/certs/server.key

Best regards,

Brian

Attachment: signature.asc
Description: PGP signature

Reply via email to