Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-29431

rsyslog does not create UnixSocket when $AddUnixListenSocket used.

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-8.9.0
    • rsyslog
    • None
    • Moderate
    • rhel-sst-security-special-projects
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      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

      1. Put SElinux into permissive mode
        {{ # getenforce 0 }}
      2. Create test directory on another filesystem.
        {{ # mkdir /home/some/path }}
      3. Add configuration to rsyslog
        Create file /home/some/path
        {{
        $AddUnixListenSocket /home/some/path/log
        }}
      4. Restart rsyslog
      5. Check location for Unix socket
        {{
      6. ls -l /home/some/path
        ls -l /home/some/path
        total 0
        }}

      Expected results

      {{

      1. ls -l /home/some/path
        total 0
        }}

      Actual results

      {{

      1. ls -l /home/some/path
        srw-rw-rw-. 1 root root 0 Mar 13 23:05 log
        }}

              rh-ee-alakatos Attila Lakatos
              rhn-support-dareynol Daniel Reynolds
              Attila Lakatos Attila Lakatos
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: