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

inotify permission denied with default config #542

Open
adrianrobotka opened this issue Mar 13, 2025 · 3 comments
Open

inotify permission denied with default config #542

adrianrobotka opened this issue Mar 13, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@adrianrobotka
Copy link
Member

Description of the problem

The default axosyslog config on almalinux9 logs the following:

Error start file monitor, can not register inotify watch; errno='Permission denied (13)'

SELINUX is in enforcing mode by default on AlmaLinux. It is a possible cause of the problem.

I installed the axosyslog RPM package from pkg.axoflow.io/rpm/nightly with version axosyslog-4.10.1.90.g46dd622-2+20250312T230904.x86_64

Proposed solution

Assuming that SELINUX causes the trouble, I suggest providing SELINUX/AppArmor profiles to cover the default config's needs.
Optionally adding a comment to the config file to look after these.

@adrianrobotka adrianrobotka added the enhancement New feature or request label Mar 13, 2025
@jszigetvari
Copy link
Contributor

I originally did this for syslog-ng: https://github.com/syslog-ng/syslog-ng/tree/develop/contrib/selinux

@MrAnno
Copy link
Member

MrAnno commented Mar 13, 2025

Thank you, @jszigetvari

We should revisit that and if everything is up-to-date and production-ready, we should move those out from the contrib folder (things in that folder are external contributions that didn't receive extensive review or testing), and install them as part of the packaging.

@jszigetvari
Copy link
Contributor

jszigetvari commented Mar 13, 2025

You should know however that that code was primarily written for syslog-ng PE.
On the other hand, it was supported by BalaBit and later OI.
Either way, I am here to carry on that work moving forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants