Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Community, after the system reboots that rsyslog is not getting started. From the journalctl I can see SELinux is preventing it. However, I don't know how to fix it. Here are the logs:
PHP Code:
[root@webserver-03 ~]# systemctl status rsyslog.service ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-06-08 16:49:57 MST; 1h 43min ago Docs: man:rsyslogd(8) https://www.rsyslog.com/doc/ Process: 3328 ExecStart=/usr/sbin/rsyslogd -n $SYSLOGD_OPTIONS (code=exited, status=203/EXEC) Main PID: 3328 (code=exited, status=203/EXEC)
Jun 08 16:49:57 webserver-03 systemd[1]: rsyslog.service: Main process exited, code=exited, status=203/EXEC Jun 08 16:49:57 webserver-03 systemd[1]: rsyslog.service: Failed with result 'exit-code'. Jun 08 16:49:57 webserver-03 systemd[1]: Failed to start System Logging Service. Jun 08 16:49:57 webserver-03 systemd[1]: rsyslog.service: Service RestartSec=100ms expired, scheduling restart. Jun 08 16:49:57 webserver-03 systemd[1]: rsyslog.service: Scheduled restart job, restart counter is at 5. Jun 08 16:49:57 webserver-03 systemd[1]: Stopped System Logging Service. Jun 08 16:49:57 webserver-03 systemd[1]: rsyslog.service: Start request repeated too quickly. Jun 08 16:49:57 webserver-03 systemd[1]: rsyslog.service: Failed with result 'exit-code'. Jun 08 16:49:57 webserver-03 systemd[1]: Failed to start System Logging Service.
Journalctl messages
PHP Code:
Jun 08 18:34:52 webserver-03 setroubleshoot[19594]: AnalyzeThread.run(): Cancel pending alarm Jun 08 18:34:52 webserver-03 dbus-daemon[1126]: [system] Activating service name='org.fedoraproject.SetroubleshootPrivileged' requested by ':1.894' (uid=995 pid=19594 comm="/usr/libexec/platform-python -Es /usr/sbin/setroub" label="system_u:system_r:setroubleshootd_t:s0") (using servicehelper) Jun 08 18:34:52 webserver-03 dbus-daemon[1126]: [system] Successfully activated service 'org.fedoraproject.SetroubleshootPrivileged' Jun 08 18:34:53 webserver-03 setroubleshoot[19594]: SELinux is preventing /usr/lib/systemd/systemd from execute access on the file /usr/sbin/rsyslogd. For complete SELinux messages run: sealert -l 18d3a40d-****-****-****-*********** Jun 08 18:34:53 webserver-03 setroubleshoot[19594]: SELinux is preventing /usr/lib/systemd/systemd from execute access on the file /usr/sbin/rsyslogd.
If you believe that systemd should be allowed execute access on the rsyslogd file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c '(rsyslogd)' --raw | audit2allow -M my-rsyslogd # semodule -X 300 -i my-rsyslogd.pp
Sealart
PHP Code:
[root@webserver-03 ~]# sealert -l 18d3a40d-****-****-****-*********** SELinux is preventing /usr/lib/systemd/systemd from execute access on the file /usr/sbin/rsyslogd.
If you believe that systemd should be allowed execute access on the rsyslogd file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c '(rsyslogd)' --raw | audit2allow -M my-rsyslogd # semodule -X 300 -i my-rsyslogd.pp
Additional Information: Source Context system_u:system_r:init_t:s0 Target Context system_u:object_r:var_log_t:s0 Target Objects /usr/sbin/rsyslogd [ file ] Source (rsyslogd) Source Path /usr/lib/systemd/systemd Port <Unknown> Host webserver-03 Source RPM Packages systemd-239-74.el8_8.x86_64 Target RPM Packages rsyslog-8.2102.0-10.el8.x86_64 SELinux Policy RPM selinux-policy-targeted-3.14.3-117.el8.noarch Local Policy RPM selinux-policy-targeted-3.14.3-117.el8.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name webserver-03 Platform Linux webserver-03 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Thu May 18 10:27:05 EDT 2023 x86_64 x86_64 Alert Count 15 First Seen 2023-06-08 16:46:27 MST Last Seen 2023-06-08 18:34:36 MST Local ID 18d3a40d-****-****-****-***********
Well, it's showing you the 2 cmds you can run to enable systemd to control rsyslogd...
However, rsyslogd is a std daemon to have running, so I'm surprised the install of it didn't allow for the systemd SELinux requirements.
Did you not install it via your pkg mgr ?
I installed it via the package manager. I also ran yum reinstall rsyslog to reinstall it I thought maybe something got deleted. It reinstalled but nothing got changed still get the error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.