From 9f75e0bc9eccd730c3089d8ea6d467be67d7fa74 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 31 Mar 2010 12:52:08 +0000 Subject: blacklist RPM_CONFIGDIR in restricted commands This can be used in rpm 4.7+ to override RPM configuration's directory (/usr/lib/rpm), --- rurpme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rurpme') diff --git a/rurpme b/rurpme index cbfb76fd..2d23b4ca 100644 --- a/rurpme +++ b/rurpme @@ -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); -- cgit v1.2.1