Bug 1274 - automatically trim chroot path from dnscrypt key/cert paths
automatically trim chroot path from dnscrypt key/cert paths
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
1.6.2
Other All
: P5 enhancement
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-31 09:04 CEST by Manu Bretelle
Modified: 2017-06-01 11:57 CEST (History)
2 users (show)

See Also:


Attachments
dnscrypt cert/key path in chroot (3.07 KB, patch)
2017-05-31 09:04 CEST, Manu Bretelle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manu Bretelle 2017-05-31 09:04:44 CEST
Created attachment 399 [details]
dnscrypt cert/key path in chroot

This is already done in multiple places within unbound and make it easier/more convenient to configure paths to dnscrypt certs and keys.


Before:
[1496213648] unbound[3170260:0] fatal error: dnsc_parse_certs: failed to load /home/chantra/local/unbound-conf/keys2/1.2_chacha.cert: No such file or directory

After:
[1496213669] unbound[3172657:0] notice: Loaded cert /home/chantra/local/unbound-conf/keys2/1.2_chacha.cert
[1496213669] unbound[3172657:0] notice: Loaded cert /home/chantra/local/unbound-conf/keys2/1.2.cert
[1496213669] unbound[3172657:0] notice: Loaded cert /home/chantra/local/unbound-conf/keys1/1.cert
[1496213669] unbound[3172657:0] notice: Loaded key /home/chantra/local/unbound-conf/keys2/1.key
Comment 1 Ralph Dolmans 2017-06-01 11:57:46 CEST
Thanks Manu. I have applied your patch.

-- Ralph