diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2010-03-31 12:52:08 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2010-03-31 12:52:08 +0000 |
commit | 9f75e0bc9eccd730c3089d8ea6d467be67d7fa74 (patch) | |
tree | 0d2c3a64a7e9c6706ac5a99ec96c6d7bc9c24eee | |
parent | fd6e10ca20224796007a96978c56c583590ce29a (diff) | |
download | urpmi-9f75e0bc9eccd730c3089d8ea6d467be67d7fa74.tar urpmi-9f75e0bc9eccd730c3089d8ea6d467be67d7fa74.tar.gz urpmi-9f75e0bc9eccd730c3089d8ea6d467be67d7fa74.tar.bz2 urpmi-9f75e0bc9eccd730c3089d8ea6d467be67d7fa74.tar.xz urpmi-9f75e0bc9eccd730c3089d8ea6d467be67d7fa74.zip |
blacklist RPM_CONFIGDIR in restricted commands
This can be used in rpm 4.7+ to override RPM configuration's directory
(/usr/lib/rpm),
-rw-r--r-- | rurpme | 2 | ||||
-rw-r--r-- | rurpmi | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ if ($< != 0) { } $ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"; -delete @ENV{qw(ENV BASH_ENV HOME IFS CDPATH PERLLIB PERL5LIB PERL5OPT PERLIO PERLIO_DEBUG PERL5DB PERL_ENCODING PERL_HASH_SEED PERL_SIGNALS PERL_UNICODE)}; +delete @ENV{qw(ENV BASH_ENV HOME IFS CDPATH PERLLIB PERL5LIB PERL5OPT PERLIO PERLIO_DEBUG PERL5DB PERL_ENCODING PERL_HASH_SEED PERL_SIGNALS PERL_UNICODE RPM_CONFIGDIR)}; print STDERR N("Running urpme in restricted mode..."), "\n"; @ARGV or @ARGV = qw(--help); @@ -13,7 +13,7 @@ if ($< != 0) { } $ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"; -delete @ENV{qw(ENV BASH_ENV HOME IFS CDPATH PERLLIB PERL5LIB PERL5OPT PERLIO PERLIO_DEBUG PERL5DB PERL_ENCODING PERL_HASH_SEED PERL_SIGNALS PERL_UNICODE)}; +delete @ENV{qw(ENV BASH_ENV HOME IFS CDPATH PERLLIB PERL5LIB PERL5OPT PERLIO PERLIO_DEBUG PERL5DB PERL_ENCODING PERL_HASH_SEED PERL_SIGNALS PERL_UNICODE RPM_CONFIGDIR)}; print STDERR N("Running urpmi in restricted mode..."), "\n"; @ARGV or @ARGV = qw(--help); |