What were you trying to do that didn't work?
When adding "$AddUnixListenSocket" to configuration, expect that an extra Unix socket would be created by rsyslog.
- See following error messages on rsyslog startup:
{{
Mar 13 16:07:27 node-0 systemd[1]: rsyslog.service: Succeeded.
Mar 13 16:07:27 node-0 rsyslogd[6450]: cannot create '/home/some/path': Read-only file system [v8.2102.0-15.el8 try https://www.rsyslog.com/e/2176 ]
Mar 13 16:07:27 node-0 rsyslogd[6450]: imuxsock does not run because we could not aquire any socket [v8.2102.0-15.el8]
Mar 13 16:07:27 node-0 rsyslogd[6450]: activation of module imuxsock failed [v8.2102.0-15.el8]
}}
- SElinux was set to permissive during testing.
Please provide the package NVR for which bug is seen:
- rsyslog-8.2102.0-15.el8 has the issue,
- rsyslog-8.2102.0-13.el8 works as expected.
How reproducible:
Always
Steps to reproduce
- Put SElinux into permissive mode
{{ # getenforce 0 }} - Create test directory on another filesystem.
{{ # mkdir /home/some/path }} - Add configuration to rsyslog
Create file /home/some/path
{{
$AddUnixListenSocket /home/some/path/log
}} - Restart rsyslog
- Check location for Unix socket
{{ - ls -l /home/some/path
ls -l /home/some/path
total 0
}}
Expected results
{{
- ls -l /home/some/path
total 0
}}
Actual results
{{
- ls -l /home/some/path
srw-rw-rw-. 1 root root 0 Mar 13 23:05 log
}}