diff options
author | Marcelo Leitner <mrl@mandriva.com> | 2007-11-14 13:11:01 +0000 |
---|---|---|
committer | Marcelo Leitner <mrl@mandriva.com> | 2007-11-14 13:11:01 +0000 |
commit | 384f25e474d99224ae3c2bdafe93f30dd13537e1 (patch) | |
tree | eb4d36a08c8cee5e6044e260265e85d61a8ec357 /iurt2 | |
parent | 3f28445fdfa9a063db48a022a100b365429d666f (diff) | |
download | iurt-384f25e474d99224ae3c2bdafe93f30dd13537e1.tar iurt-384f25e474d99224ae3c2bdafe93f30dd13537e1.tar.gz iurt-384f25e474d99224ae3c2bdafe93f30dd13537e1.tar.bz2 iurt-384f25e474d99224ae3c2bdafe93f30dd13537e1.tar.xz iurt-384f25e474d99224ae3c2bdafe93f30dd13537e1.zip |
- Protect iurt from being executed as root.
Diffstat (limited to 'iurt2')
-rwxr-xr-x | iurt2 | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -646,6 +646,7 @@ if ($run{use_cache}) { $run{daydate} = $daydate; plog('DEBUG', "using $run{run} as chroot extension"); $run{user} = $ENV{SUDO_USER} || $ENV{USER}; +die "Iurt should not be executed as root." if $run{user} == "root"; $run{uid} = getpwnam $run{user}; plog('DEBUG', "using local user $run{user}, id $run{uid}"); |