spacewalk/admin/rhn-config-satellite.pl | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 615bc53af664b6883c19a63c18508e46bce6ef16 Author: Jan Pazdziora jpazdziora@redhat.com Date: Thu Apr 28 14:07:11 2011 +0200
Disable access of other to the satellite-local-rules.conf file, as it contains the database password.
diff --git a/spacewalk/admin/rhn-config-satellite.pl b/spacewalk/admin/rhn-config-satellite.pl index 7e89842..312c284 100755 --- a/spacewalk/admin/rhn-config-satellite.pl +++ b/spacewalk/admin/rhn-config-satellite.pl @@ -44,6 +44,8 @@ my %options = map { split(/=/,$_, 2) } @options; my $tmpfile = $target . ".bak.${PID}";
open(TARGET, "< $target") or die "Could not open $target: $OS_ERROR"; +unlink $tmpfile if -e $tmpfile; +umask 0027; open(TMP, "> $tmpfile") or die "Could not open $tmpfile for writing: $OS_ERROR";
while (my $line = <TARGET>) {
spacewalk-commits@lists.fedorahosted.org