Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 658716

Summary: net-proxy/dante-1.4.1-r1 failed to start with user.unprivileged directive in config
Product: Gentoo Linux Reporter: Kernel <kernelonline>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dante-1.4.2-sockd-init
dante-1.4.2-sockd-init
dante-1.4.2-sockd-init

Description Kernel 2018-06-22 06:29:25 UTC
Ebuilds for dante 1.4.x comes with init.d template script dante-1.3.2-sockd-init, which contains this part:

DAEMON_UID=`sed -e '/^[ \t]*user[.]notprivileged[ \t]*:/{s/.*:[ \t]*//;q};d' /etc/socks/sockd.conf`

Man page for sockd.conf doesn't contain notprivileged directive anymore. So, this regexp failed to work for dante 1.4.x with "user.unprivileged" directive in config, and dante daemon - failed to start without correct TMPDIR directory.

Need to change "notprivileged" to "unprivileged" in init script and sample sockd.conf config.

Dante 1.4.1 config file parser contains both directives - "notprivileged" and "unprivileged" for same parameter.
Comment 1 Quentin Retornaz 2020-02-13 00:40:07 UTC
Created attachment 613592 [details]
dante-1.4.2-sockd-init
Comment 2 Quentin Retornaz 2020-02-13 00:40:47 UTC
I wrote a refined initd attached
Comment 3 Quentin Retornaz 2020-02-13 19:17:41 UTC
Created attachment 613712 [details]
dante-1.4.2-sockd-init

I fixed permissions for pidfile
Comment 4 Quentin Retornaz 2020-02-13 19:39:18 UTC
Created attachment 613716 [details]
dante-1.4.2-sockd-init

moved TMPDIR environment variable