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

Linux Baseline tests are failing for os-13 #272

Closed
mfortin opened this issue Mar 22, 2021 · 1 comment
Closed

Linux Baseline tests are failing for os-13 #272

mfortin opened this issue Mar 22, 2021 · 1 comment

Comments

@mfortin
Copy link
Contributor

mfortin commented Mar 22, 2021

Describe the bug
Controls for test os-13 from the linux baseline is failing.

Expected behavior
Pass results for those tests.

Actual behavior

  ×  os-13: Protect cron directories and files (12 failed)
1513     ✔  File /etc/crontab is expected to be owned by "root"
1514     ✔  File /etc/crontab is expected not to be writable by group
1515     ✔  File /etc/crontab is expected not to be writable by other
1516     ×  File /etc/crontab is expected not to be readable by group
1517     expected File /etc/crontab not to be readable by group
1518     ×  File /etc/crontab is expected not to be readable by other
1519     expected File /etc/crontab not to be readable by other
1520     ✔  File /etc/cron.hourly is expected to be owned by "root"
1521     ✔  File /etc/cron.hourly is expected not to be writable by group
1522     ✔  File /etc/cron.hourly is expected not to be writable by other
1523     ×  File /etc/cron.hourly is expected not to be readable by group
1524     expected File /etc/cron.hourly not to be readable by group
1525     ×  File /etc/cron.hourly is expected not to be readable by other
1526     expected File /etc/cron.hourly not to be readable by other
1527     ✔  File /etc/cron.daily is expected to be owned by "root"
1528     ✔  File /etc/cron.daily is expected not to be writable by group
1529     ✔  File /etc/cron.daily is expected not to be writable by other
1530     ×  File /etc/cron.daily is expected not to be readable by group
1531     expected File /etc/cron.daily not to be readable by group
1532     ×  File /etc/cron.daily is expected not to be readable by other
1533     expected File /etc/cron.daily not to be readable by other
1534     ✔  File /etc/cron.weekly is expected to be owned by "root"
1535     ✔  File /etc/cron.weekly is expected not to be writable by group
1536     ✔  File /etc/cron.weekly is expected not to be writable by other
1537     ×  File /etc/cron.weekly is expected not to be readable by group
1538     expected File /etc/cron.weekly not to be readable by group
1539     ×  File /etc/cron.weekly is expected not to be readable by other
1540     expected File /etc/cron.weekly not to be readable by other
1541     ✔  File /etc/cron.monthly is expected to be owned by "root"
1542     ✔  File /etc/cron.monthly is expected not to be writable by group
1543     ✔  File /etc/cron.monthly is expected not to be writable by other
1544     ×  File /etc/cron.monthly is expected not to be readable by group
1545     expected File /etc/cron.monthly not to be readable by group
1546     ×  File /etc/cron.monthly is expected not to be readable by other
1547     expected File /etc/cron.monthly not to be readable by other
1548     ✔  File /etc/cron.d is expected to be owned by "root"
1549     ✔  File /etc/cron.d is expected not to be writable by group
1550     ✔  File /etc/cron.d is expected not to be writable by other
1551     ×  File /etc/cron.d is expected not to be readable by group
1552     expected File /etc/cron.d not to be readable by group
1553     ×  File /etc/cron.d is expected not to be readable by other
1554     expected File /etc/cron.d not to be readable by other

Example code

bundle exec kitchen test -c 1 --destroy=always ubuntu-16-04

OS / Environment

Ubuntu 16.04
Ubuntu 18.04
Oracle 7
Fedora 27
Fedora 28
Amazon Linux 2
and possibly others

Chef Version

16.10.17

Cookbook Version

4.0.0

Additional context
See job logs here: https://travis-ci.org/github/dev-sec/chef-os-hardening/jobs/762137529

@artem-sidorenko
Copy link
Member

Resolved by #273

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

No branches or pull requests

2 participants