Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

V-72027 | Control test code is incorrect #140

Open
rx294 opened this issue Mar 2, 2020 · 0 comments
Open

V-72027 | Control test code is incorrect #140

rx294 opened this issue Mar 2, 2020 · 0 comments

Comments

@rx294
Copy link
Contributor

rx294 commented Mar 2, 2020

V-72027 contains incorrect test code

Reccomending reversion to pervious correct version

ignore_shells = non_interactive_shells.join('|')
findings = Set[]
users.where{ !shell.match(ignore_shells) && (uid >= 1000 || uid == 0)}.entries.each do |user_info|
next if exempt_home_users.include?("#{user_info.username}")
findings = findings + command("find #{user_info.home} -xdev ! -name '.*' -perm /027 ! -type l").stdout.split("\n")
end
describe "Home directories with excessive permissions" do
subject { findings.to_a }
it { should be_empty }
end

rx294 added a commit that referenced this issue Mar 2, 2020
aaronlippold pushed a commit that referenced this issue Mar 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant