Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401905 - net-misc/sslh-1.10 - permission denied accessing /var/run/sslh.pid
Summary: net-misc/sslh-1.10 - permission denied accessing /var/run/sslh.pid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Michael Palimaka (kensington)
URL:
Whiteboard:
Keywords:
Depends on: 424685
Blocks:
  Show dependency tree
 
Reported: 2012-02-02 12:34 UTC by Olliver Schinagl
Modified: 2012-07-06 18:19 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olliver Schinagl 2012-02-02 12:34:35 UTC
After reinstalling my server and doing a fresh (upgraded) install of sslh it no longer starts. running it outside of init.d, using the binary and conf.d/sslh's options, the binary gets a permission denied on /var/run/sslh.pid, most probably when trying to create the pid.

Adding --user root to the sslh OPTIONS in conf.d/sslh allows sslh to work without any problems.

On the sslh homepage it is listed that sslh does not require root to operate (I suppose they drop priviledges after binding to a port under 1024). Whilst testing without the --user root option, I changed permissions of /var/run to allow o+w, yet still it was not allowed to write.

Either sslh has a small permission bug somewhere, or sslh ebuild needs to set certain things up better. (/var/run/sslh with its pid in it owned by sslh? and a user sslh added?)

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-02 17:17:40 UTC
$ cat metadata.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
</pkgmetadata>

oh
Comment 2 Michael Palimaka (kensington) gentoo-dev 2012-07-06 17:38:27 UTC
This should be fixed upstream in 1.13
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-07-06 18:19:11 UTC
I have bumped the version and it is working well for me.

Please reopen if you have further issues.