-Secure permissions on dhcpd.conf to prevent tampering using secret key

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-03-26 20:33:07 +00:00
parent ecb66952c6
commit 8d7a6b312b

View File

@ -332,6 +332,7 @@ sub preprocess_request
sub process_request
{
my $oldmask = umask 0077;
$restartdhcp=0;
my $req = shift;
$callback = shift;
@ -612,6 +613,7 @@ sub process_request
system("/etc/init.d/dhcpd restart");
system("chkconfig dhcpd on");
}
umask $oldmask;
}
sub putmyselffirst {