From 0bd0b36d146f3290d93eb6e52c6631c1e00c7e52 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sun, 16 Jan 2011 22:59:25 +0000 Subject: set 0440 permissions to tmp file before copying it to sudoers --- iurt2 | 1 + 1 file changed, 1 insertion(+) diff --git a/iurt2 b/iurt2 index 3a8dc3e..e41fef2 100755 --- a/iurt2 +++ b/iurt2 @@ -1452,6 +1452,7 @@ root ALL=(ALL) ALL $user ALL=(ALL) NOPASSWD:RPM ); close $f; + chmod 0440, $tmpfile; plog("adding sudo for /bin/rpm, /usr/sbin/urpmi and /usr/sbin/urpme"); my $ret = sudo($run, $config, '--cp', $tmpfile, $file); -- cgit v1.2.1