added install to dangerous commands
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@382 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
parent
653fe2e281
commit
2a1a96cd39
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue