Create urandom in chroot

tags/0.1.6_el5
Daniel Berteaud 9 years ago
parent 5e590ef5b9
commit 848752010a
  1. 10
      smeserver-openvpn-routed.spec

@ -3,7 +3,7 @@
Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for routed mode
Name: smeserver-openvpn-routed
%define version 0.1.4
%define version 0.1.5
%define release 1
Version: %{version}
Release: %{release}%{?dist}
@ -26,6 +26,9 @@ to have a full working openvpn server running in routed mode.
%changelog
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.1.5-1
- Create /etc/openvpn/routed/dev/urandom [SME: 9238]
* Tue Sep 29 2015 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1
- Make crl verification optional
- Set a default Network if none is set
@ -53,6 +56,7 @@ perl createlinks
%{__mkdir_p} root/etc/openvpn/routed/priv
%{__mkdir_p} root/etc/openvpn/routed/pub
%{__mkdir_p} root/etc/openvpn/routed/tmp
%{__mkdir_p} root/etc/openvpn/routed/dev
%{__mkdir_p} root/var/log/openvpn-routed
%install
@ -77,8 +81,10 @@ perl createlinks
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ \! -c /etc/openvpn/routed/dev/urandom ]; then
mknod -m 0444 /etc/openvpn/routed/dev/urandom c 1 9
fi
%preun

Loading…
Cancel
Save