Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687046 - 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)
Summary: net-misc/stunnel with 'setuid' and 'setgid' are set in stunnel.conf - stunnel...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-31 04:00 UTC by Wade Cline
Modified: 2019-05-31 08:55 UTC (History)
0 users

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


Attachments
Set ownership of dir containing PID file appropriately (patch,1.41 KB, application/mbox)
2019-05-31 04:00 UTC, Wade Cline
Details

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