/[smecontribs]/rpms/smeserver-openvpn-bridge/contribs7/smeserver-openvpn-bridge-2.0-check_certs.patch2
ViewVC logotype

Contents of /rpms/smeserver-openvpn-bridge/contribs7/smeserver-openvpn-bridge-2.0-check_certs.patch2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Mar 2 23:27:16 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-openvpn-bridge-2_0-43_el4_sme, smeserver-openvpn-bridge-2_0-29_el4_sme, smeserver-openvpn-bridge-2_0-39_el4_sme, smeserver-openvpn-bridge-2_0-48_el4_sme, smeserver-openvpn-bridge-2_0-19_el4_sme, smeserver-openvpn-bridge-2_0-21_el4_sme, smeserver-openvpn-bridge-2_0-33_el4_sme, smeserver-openvpn-bridge-2_0-35_el4_sme, smeserver-openvpn-bridge-2_0-47_el4_sme, smeserver-openvpn-bridge-2_0-18_el4_sme, smeserver-openvpn-bridge-2_0-12_el4_sme, smeserver-openvpn-bridge-2_0-11_el4_sme, smeserver-openvpn-bridge-2_0-27_el4_sme, smeserver-openvpn-bridge-2_0-10_el4_sme, smeserver-openvpn-bridge-2_0-20_el4_sme, smeserver-openvpn-bridge-2_0-23_el4_sme, smeserver-openvpn-bridge-2_0-30_el4_sme, smeserver-openvpn-bridge-2_0-42_el4_sme, smeserver-openvpn-bridge-2_0-41_el4_sme, smeserver-openvpn-bridge-2_0-36_el4_sme, smeserver-openvpn-bridge-2_0-8_el4_sme, smeserver-openvpn-bridge-2_0-9_el4_sme, smeserver-openvpn-bridge-2_0-26_el4_sme, smeserver-openvpn-bridge-2_0-13_el4_sme, smeserver-openvpn-bridge-2_0-17_el4_sme, smeserver-openvpn-bridge-2_0-14_el4_sme, smeserver-openvpn-bridge-2_0-46_el4_sme, smeserver-openvpn-bridge-2_0-40_el4_sme, smeserver-openvpn-bridge-2_0-32_el4_sme, smeserver-openvpn-bridge-2_0-24_el4_sme, smeserver-openvpn-bridge-2_0-38_el4_sme, smeserver-openvpn-bridge-2_0-25_el4_sme, smeserver-openvpn-bridge-2_0-15_el4_sme, smeserver-openvpn-bridge-2_0-16_el4_sme, smeserver-openvpn-bridge-2_0-45_el4_sme, smeserver-openvpn-bridge-2_0-37_el4_sme, smeserver-openvpn-bridge-2_0-34_el4_sme, HEAD
Initial import of smeserver-openvpn-bridge

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm mezzanine_patched_smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm
2 --- smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm 2009-01-16 15:56:58.000000000 +0100
3 +++ mezzanine_patched_smeserver-openvpn-bridge-2.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpnbridge.pm 2009-01-16 15:56:54.000000000 +0100
4 @@ -491,7 +491,7 @@
5 if (
6 (( -z "$pubdir/cacert.pem" ) || ( ! -e "$pubdir/cacert.pem" )) ||
7 (( -z "$pubdir/cert.pem") || ( ! -e "$pubdir/cert.pem" )) ||
8 - (( -z "$privdir/key.pem") || ( ! -e "$pubdir/key.pem" )) ||
9 + (( -z "$privdir/key.pem") || ( ! -e "$privdir/key.pem" )) ||
10 (( -z "$pubdir/cacrl.pem") || ( ! -e "$pubdir/cacrl.pem" )) ||
11 (( -z "$pubdir/dh.pem") || ( ! -e "$pubdir/dh.pem" ))
12 ){
13 @@ -640,7 +640,7 @@
14 $fm->error('ERROR_OPEN_CA','FIRST');
15 # Tell the user something bad has happened
16 return;
17 - }
18 + }
19 print CA $ca;
20 close CA;
21
22 @@ -648,7 +648,7 @@
23 $fm->error('ERROR_OPEN_CRT','FIRST');
24 # Tell the user something bad has happened
25 return;
26 - }
27 + }
28 print CRT $crt;
29 close CRT;
30
31 @@ -656,7 +656,7 @@
32 $fm->error('ERROR_OPEN_KEY','FIRST');
33 # Tell the user something bad has happened
34 return;
35 - }
36 + }
37 print KEY $key;
38 close KEY;
39
40 @@ -664,7 +664,7 @@
41 $fm->error('ERROR_OPEN_DH','FIRST');
42 # Tell the user something bad has happened
43 return;
44 - }
45 + }
46 print DH $dh;
47 close DH;
48
49 @@ -672,15 +672,14 @@
50 $fm->error('ERROR_OPEN_TA','FIRST');
51 # Tell the user something bad has happened
52 return;
53 - }
54 + }
55 print TA $ta;
56 close TA;
57
58 - esmith::util::chownFile("root", "root",
59 - "$privdir");
60 - esmith::util::chownFile("root", "root",
61 - "$pubdir");
62 - chmod 0640, "$privdir";
63 + # Restrict permissions on sensitive data
64 + esmith::util::chownFile("root", "root","$privdir");
65 + esmith::util::chownFile("root", "root","$pubdir");
66 + chmod 0700, "$privdir";
67
68 unless(system("/sbin/e-smith/signal-event openvpn-bridge-update") == 0){
69 $fm->error('ERROR_OCCURED','RULES_PAGE');

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed