Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 469136 Details for
Bug 397863
net-misc/openvpn: add /var/run/openvpn to be ok with selinux and openvpn-status.log file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix the run path on a selinux enforced box
openvpn-selinux.patch (text/plain), 963 bytes, created by
Veovis
on 2017-04-04 08:39:50 UTC
(
hide
)
Description:
fix the run path on a selinux enforced box
Filename:
MIME Type:
Creator:
Veovis
Created:
2017-04-04 08:39:50 UTC
Size:
963 bytes
patch
obsolete
>diff -ur a/files/openvpn-2.1.init b/files/openvpn-2.1.init >--- a/files/openvpn-2.1.init 2017-03-17 14:56:14.000000000 +0100 >+++ b/files/openvpn-2.1.init 2017-04-04 10:31:59.619984743 +0200 >@@ -5,9 +5,9 @@ > VPNDIR=${VPNDIR:-/etc/openvpn} > VPN=${SVCNAME#*.} > if [ -n "${VPN}" ] && [ ${SVCNAME} != "openvpn" ]; then >- VPNPID="/var/run/openvpn.${VPN}.pid" >+ VPNPID="/run/openvpn/openvpn.${VPN}.pid" > else >- VPNPID="/var/run/openvpn.pid" >+ VPNPID="/run/openvpn/openvpn.pid" > fi > VPNCONF="${VPNDIR}/${VPN}.conf" > >@@ -106,6 +106,11 @@ > grep -q "^[ ]*group[ ].*" "${VPNCONF}" || args="${args} --group openvpn" > fi > >+ local VPNUSR=`sed -n 's/^[ ]*user[ ]\(.*\)/\1/p' "${VPNCONF}"` >+ local VPNGRP=`sed -n 's/^[ ]*group[ ]\(.*\)/\1/p' "${VPNCONF}"` >+ >+ checkpath -d -o "${VPNUSR:-openvpn}":"${VPNGRP:-openvpn}" -m 0750 "${VPNPID%/*}" >+ > # Ensure that our scripts get the PEER_DNS variable > [ -n "${PEER_DNS}" ] && args="${args} --setenv PEER_DNS ${PEER_DNS}" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 397863
:
298079
| 469136