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

Bug 687046

Summary: net-misc/stunnel with 'setuid' and 'setgid' are set in stunnel.conf - stunnel: Cannot create pid file /run/stunnel/stunnel.pid // create: Permission denied (13)
Product: Gentoo Linux Reporter: Wade Cline <wadecline>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/14362
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Set ownership of dir containing PID file appropriately

Description Wade Cline 2019-05-31 04:00:48 UTC
Created attachment 578126 [details]
Set ownership of dir containing PID file appropriately

When using the 'setuid' and 'setgid' options in 'stunnel.conf', the init script will change the ownership of the containing directory to 'stunnel', causing the daemon to crash when it tries to create the PID file.

2019.05.30 04:56:36 LOG3[main]: Cannot create pid file /run/stunnel/stunnel.pid
2019.05.30 04:56:36 LOG3[main]: create: Permission denied (13)

Attached is a proposed solution to this problem.