Bug 2196807 - Systemd-analyze security reports false information
Summary: Systemd-analyze security reports false information
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David Tardon
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-10 09:46 UTC by Attila Lakatos
Modified: 2023-07-13 11:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github redhat-plumbers systemd-rhel8 pull 399 0 None open Do not assign badness to filtered-out syscalls 2023-06-29 07:48:19 UTC
Github systemd systemd pull 16640 0 None Merged Improve systemd-analyze security a bit and other assorted bits 2023-06-29 07:41:14 UTC
Red Hat Issue Tracker RHELPLAN-156866 0 None None None 2023-05-10 09:47:18 UTC

Description Attila Lakatos 2023-05-10 09:46:35 UTC
Description of problem:
The output of 'systemd-analyze security rsyslog.service' generates false output in some cases, see below.

Version-Release number of selected component (if applicable):
systemd-239-75.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1. systemd-analyze security rsyslog.service
...
✗ SystemCallFilter=~@clock Service does not filter system calls  0.2
✗ SystemCallFilter=~@debug Service does not filter system calls  0.2
✗ SystemCallFilter=~@module Service does not filter system calls 0.2
✗ SystemCallFilter=~@mount Service does not filter system calls  0.2
✗ SystemCallFilter=~@raw-io Service does not filter system calls 0.2
✗ SystemCallFilter=~@reboot Service does not filter system calls 0.2
✗ SystemCallFilter=~@swap Service does not filter system calls 0.2
✗ SystemCallFilter=~@privileged Service does not filter system calls 0.2
✗ SystemCallFilter=~@resources Service does not filter system calls 0.2
...
3. After review, I added the following line to the rsyslog service file (/usr/lib/systemd/system/rsyslog.service):
SystemCallFilter=~@clock @debug @module @raw-io @reboot @swap @cpu-emulation @obsolete
4. systemctl daemon-reload && systemctl restart rsyslog

Actual results:
systemd-analyze still reports that the systemcallfilters are not present.

Expected results:
systemd-analyze should not report that the systemcallfilters are not present.

Additional info:
On rhel-9.3 with systemd-252-13.el9_2.x86_64, the problem can not be reproduced.


Note You need to log in before you can comment on or make changes to this bug.