Bug 1332 - Bump verbosity of failed chown'ing of the control socket.
Bump verbosity of failed chown'ing of the control socket.
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
unspecified
x86_64 Linux
: P5 enhancement
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-04 18:09 CEST by Simon Deziel
Modified: 2017-07-05 09:00 CEST (History)
2 users (show)

See Also:


Attachments
turn control socket chown failure into a debug message (710 bytes, patch)
2017-07-04 18:09 CEST, Simon Deziel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Deziel 2017-07-04 18:09:35 CEST
Created attachment 423 [details]
turn control socket chown failure into a debug message

Hello,

Similar to bug #734, I'd appreciate if any failure when chown'ing the control socket would be logger at higher verbosity only. On Debian/Ubuntu, when using Apparmor, the chown capability isn't permitted and it result in confusing message for the sysadmin:

  unbound[7728]: [1499170285] unbound[7728:0] error: cannot chown 112.119 /run/unbound.ctl: Operation not permitted

Please consider the attached patch that does that minor change.

Best regards,
Simon
Comment 1 Wouter Wijngaards 2017-07-05 09:00:07 CEST
Hi Simon,

Thank you for the patch.  I have applied it.

Best regards, Wouter