Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514704 - net-misc/openvpn-2.3.2 - pid file created with wrong permissions
Summary: net-misc/openvpn-2.3.2 - pid file created with wrong permissions
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-23 15:54 UTC by Zoltán Halassy
Modified: 2017-11-21 19:17 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 Zoltán Halassy 2014-06-23 15:54:39 UTC
/etc/init.d/openvpn init script adds --writepid to create a pid file for the process. openvpn drops root privileges after forking to the background. When openvpn receives the HUP signal, it disconnects and rereads the configuration files. Because openvpn doesn't have root privileges anymore, it exits with an error message:

Options error: --writepid fails with '/var/run/openvpn.pid': Permission denied

A chown command after the start-stop-daemon execution would solve this problem.

Reproducible: Always

Steps to Reproduce:
1. Install OpenVPN as a daemon (server)
2. killall -HUP openvpn
Actual Results:  
OpenVPN cannot write the pid file, so it exits with an error message.

Expected Results:  
The openvpn pid file should be owned by the user which runs the openvpn process, so the process can write to the file.