From 2a1a96cd39671c0e5cfdefe5501bc9523d640183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Lepied?= Date: Fri, 2 Feb 2001 06:44:56 +0000 Subject: [PATCH] added install to dangerous commands git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@382 9bc8b190-ac0f-0410-8968-dc7d1f502856 --- PostCheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostCheck.py b/PostCheck.py index 1ee874c0..97878680 100644 --- a/PostCheck.py +++ b/PostCheck.py @@ -27,7 +27,7 @@ valid_shells=Config.getOption('ValidShells', DEFAULT_VALID_SHELLS) braces_regex=re.compile("^[^#]*%", re.MULTILINE) bracket_regex=re.compile("^[^#]*if.*[^ \]]\]", re.MULTILINE) home_regex=re.compile('[^a-zA-Z]+~|\$HOME', re.MULTILINE) -dangerous_command_regex=re.compile("(^|\s|;)(cp|mv|ln|tar|rpm|chmod|chown|rm|cpio)\s", re.MULTILINE) +dangerous_command_regex=re.compile("(^|\s|;)(cp|mv|ln|tar|rpm|chmod|chown|rm|cpio|install)\s", re.MULTILINE) def incorrect_shell_script(shellscript): tmpfile = "%s/.bash-script.%d" % (extract_dir, os.getpid())