We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29211f2 commit 137b573Copy full SHA for 137b573
controls/os_spec.rb
@@ -355,3 +355,18 @@
355
its('gids') { should_not contain_duplicates }
356
end
357
358
+
359
+control 'os-19' do
360
+ impact 1.0
361
+ title 'Shadow group should not have any users'
362
+ desc 'Members of the shadow group could have access to password hashes, so no user should be a member of that group'
363
+ shadow_group_entry = etc_group.where(name: shadow_group)
364
365
+ describe passwd.gids(shadow_group_entry.gids) do
366
+ its('count') { should eq 0 }
367
+ end
368
369
+ describe shadow_group_entry do
370
+ its('users') { should be_empty }
371
372
+end
0 commit comments