-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:
parent
ecb66952c6
commit
8d7a6b312b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user