Bug 1332

Summary: Bump verbosity of failed chown'ing of the control socket.
Product: unbound Reporter: Simon Deziel <simon.deziel>
Component: serverAssignee: unbound team <unbound-team>
Severity: enhancement CC: cathya, wouter
Priority: P5    
Version: unspecified   
Hardware: x86_64   
OS: Linux   
Attachments: turn control socket chown failure into a debug message

Description Simon Deziel 2017-07-04 18:09:35 CEST
Created attachment 423 [details]
turn control socket chown failure into a debug message


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,
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