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

Support checking for the last user as 'root' with a group specified, … #1324

Merged
merged 2 commits into from
May 25, 2023

Conversation

tspearconquest
Copy link
Contributor

@tspearconquest tspearconquest commented May 23, 2023

…and checking for a root user specified as UID 0, with or without a group name or GID number specified

@simar7
Copy link
Member

simar7 commented May 25, 2023

Could you add a test case that fails today and will be fixed with this PR?

@tspearconquest
Copy link
Contributor Author

tspearconquest commented May 25, 2023

I'd be happy to. Is there any documentation around writing and running the tests that I could review to get an understanding of the process? I looked over the architecture and contributing docs but didn't find the details. I can add the test to root_user_test.rego but I'm not clear on how to run it to verify it fails before I publish it to this PR.

@tspearconquest
Copy link
Contributor Author

I found the steps in the Makefile and was able to verify the tests fail against master but pass here. :)

@simar7 simar7 force-pushed the fail_if_last_user_is_uid_0 branch from 29a1904 to f0e2752 Compare May 25, 2023 21:12
Thomas Spear added 2 commits May 25, 2023 15:35
…and checking for a root user specified as UID 0, with or without a group GID specified

Signed-off-by: Thomas Spear <[email protected]>
@simar7 simar7 force-pushed the fail_if_last_user_is_uid_0 branch from f0e2752 to 151b930 Compare May 25, 2023 21:35
@simar7 simar7 merged commit ad176e5 into aquasecurity:master May 25, 2023
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.

2 participants