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

Bug 401905

Summary: net-misc/sslh-1.10 - permission denied accessing /var/run/sslh.pid
Product: Gentoo Linux Reporter: Olliver Schinagl <oliver>
Component: New packagesAssignee: Michael Palimaka (kensington) <kensington>
Status: RESOLVED FIXED    
Severity: minor CC: dead_gardens_, vapier
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 424685    
Bug Blocks:    

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.