Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sudo false positive #29

Merged
merged 2 commits into from
Mar 30, 2017
Merged

Fix sudo false positive #29

merged 2 commits into from
Mar 30, 2017

Conversation

reverbc
Copy link
Contributor

@reverbc reverbc commented Mar 24, 2017

Issue details

This PR is intended to fix #23 False positive on the use of SUDO

Steps to reproduce/test case

The test cases have been included in this PR, contains the following scenario in test case:

/usr/bin/sudo rm -rf /  # absolute path to sudo binary
 	  sudo rm -rf /  # spaces and tabs before sudo
date; sudo rm -rf /  # semicolon before sudo
date; sudo  # sudo in end of sentence
echo "jenkins ALL=(ALL) ALL" >> etc/sudoers  # false alarm for sudoers file
yum list installed | grep sudo  # false alarm for not using sudo

@rnagy rnagy merged commit 5367701 into RedCoolBeans:master Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive on the use of SUDO
2 participants