Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658716 - net-proxy/dante-1.4.1-r1 failed to start with user.unprivileged directive in config
Summary: net-proxy/dante-1.4.1-r1 failed to start with user.unprivileged directive in ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-22 06:29 UTC by Kernel
Modified: 2020-02-13 19:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dante-1.4.2-sockd-init (dante-1.4.2-sockd-init,1.59 KB, text/plain)
2020-02-13 00:40 UTC, Quentin Retornaz
Details
dante-1.4.2-sockd-init (dante-1.4.2-sockd-init,1.63 KB, text/plain)
2020-02-13 19:17 UTC, Quentin Retornaz
Details
dante-1.4.2-sockd-init (dante-1.4.2-sockd-init,1.66 KB, text/plain)
2020-02-13 19:39 UTC, Quentin Retornaz
Details

Note You need to log in before you can comment on or make changes to this bug.
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