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

Management of auditd is missing #182

Open
artem-sidorenko opened this issue Nov 23, 2017 · 10 comments
Open

Management of auditd is missing #182

artem-sidorenko opened this issue Nov 23, 2017 · 10 comments

Comments

@artem-sidorenko
Copy link
Member

Tests for it are included in the linux-baseline, but we do not have any implementation within this cookbook (See #181)

@alexanderadam
Copy link

Just to be sure (as this topic is totally new for me):

I'm getting these errors now

Feb 19 12:34:09 some.host.name auditctl[8645]: The audit system is disabled
Feb 19 12:34:09 some.host.name auditd[8644]: Started dispatcher: /sbin/audispd pid: 8648
Feb 19 12:34:09 some.host.name audispd[8648]: priority_boost_parser called with: 4
Feb 19 12:34:09 some.host.name audispd[8648]: max_restarts_parser called with: 10
Feb 19 12:34:09 some.host.name audispd[8648]: No plugins found, exiting
Feb 19 12:34:09 some.host.name auditd[8644]: Unable to set initial audit startup state to 'enable', exiting
Feb 19 12:34:09 some.host.name auditd[8644]: The audit daemon is exiting.
Feb 19 12:34:09 some.host.name auditctl[8711]: The audit system is disables

Is this issue here the cause of it and is #191 the solution?

@artem-sidorenko
Copy link
Member Author

@alexanderadam it looks a bit weird. Even before #191 we were just installing auditdwith its default settings, which should be fine usually

@alexanderadam
Copy link

alexanderadam commented Feb 21, 2018

@artem-sidorenko this happened on Ubuntu xenial on a VPS. In case that makes any difference.

I purged auditd manually and reinstalled it. It fails directly. So I guess it is not related to this recipe:

$ sudo apt install auditd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  audispd-plugins
The following NEW packages will be installed:
  auditd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/192 kB of archives.
After this operation, 626 kB of additional disk space will be used.
Selecting previously unselected package auditd.
(Reading database ... 49703 files and directories currently installed.)
Preparing to unpack .../auditd_1%3a2.4.5-1ubuntu2.1_amd64.deb ...
Unpacking auditd (1:2.4.5-1ubuntu2.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Setting up auditd (1:2.4.5-1ubuntu2.1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Job for auditd.service failed because the control process exited with error code. See "systemctl status auditd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript auditd, action "start" failed.
● auditd.service - Security Auditing Service
   Loaded: loaded (/lib/systemd/system/auditd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mit 2018-02-21 13:36:26 CET; 15ms ago
  Process: 14713 ExecStartPost=/sbin/auditctl -R /etc/audit/audit.rules (code=exited, status=0/SUCCESS)
  Process: 14712 ExecStart=/sbin/auditd -n (code=exited, status=1/FAILURE)
 Main PID: 14712 (code=exited, status=1/FAILURE)
Feb 21 13:36:26 some.host.name auditd[14712]: Started dispatcher: /sbin/audispd pid: 14716
Feb 21 13:36:26 some.host.name audispd[14716]: priority_boost_parser called with: 4
dpkg: error processing package auditd (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu21.1) ...
Errors were encountered while processing:
 auditd
E: Sub-process /usr/bin/dpkg returned an error code (1)

I will open another issue for making auditd optional though.

@chris-rock
Copy link
Member

Should we rely on https://github.com/chef-cookbooks/auditd for that?

gsreynolds added a commit to chef-cft/emea_demo_remediation that referenced this issue Jun 20, 2018
@chris-rock
Copy link
Member

@artem-sidorenko Do you think we should stick to the official auditd cookbook and try to use that for configuration?

@artem-sidorenko
Copy link
Member Author

@chris-rock usually yes - if it works, can be easily done and saves implementation/maintenance efforts. On the other side - if our own implementation ends up in just a simple template/service/file resource, when we should avoid the dependency from my view.

@b-dean
Copy link
Contributor

b-dean commented Feb 17, 2020

Is this stuck waiting on someone to rebase #191?

@chris-rock
Copy link
Member

@b-dean It would definitely make live for reviewers a lot easier.

@b-dean
Copy link
Contributor

b-dean commented Feb 17, 2020

@chris-rock I'm not sure how I can update his PR, or if I should make another one, but I rebased @bablakely's auditd branch onto master

master...b-dean:auditd

@artem-sidorenko
Copy link
Member Author

@b-dean that looks great! May I ask you to open a new PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants