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

Explore delivery of SELinux manifests for communications between NUT programs and their environment #2831

Open
jimklimov opened this issue Mar 3, 2025 · 0 comments
Labels
Linux Some issues are specific to Linux as a platform packaging portability We want NUT to build and run everywhere possible
Milestone

Comments

@jimklimov
Copy link
Member

According to examples like #2808 (comment) there are constraints placed on NUT when SELinux is enabled (maybe even if permissive), of which we are likely to see more going forward.

Some concerns raised or presumed:

  • access to state files, PID files, locations for them
  • access between programs (signals, localhost networking, pipes)
  • permission to listen on a port (upsd) or maybe Unix socket (drivers, upsd, upsmon, etc.)
  • permission to initiate client connections (various clients, including dummy-ups, nut-scanner, nutconf...)
  • access to nut user home directory (or attempts to, if it does not exist) - not sure where that originates from, maybe some scripts running as upsmon descendants: failed to retrieve rpm info for /home/nut / SELinux is preventing upsmon from search access on the directory /home/nut.
  • access to third-party files from other packages, e.g. failed to retrieve rpm info for /var/lib/net-snmp/mib_indexes/0 / SELinux is preventing /usr/sbin/snmp-ups from getattr access on the file /var/lib/net-snmp/mib_indexes/0., or SELinux is preventing /usr/sbin/snmp-ups from open access on the directory /var/lib/net-snmp/cert_indexes, or SELinux is preventing /usr/sbin/snmp-ups from search access on the directory /var/lib/net-snmp.
  • check if there are permissions needed for wall messaging now

Help/PRs from domain experts would be welcome.

@jimklimov jimklimov added Linux Some issues are specific to Linux as a platform packaging portability We want NUT to build and run everywhere possible labels Mar 3, 2025
@jimklimov jimklimov added this to the NUT 2.9 milestone Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Some issues are specific to Linux as a platform packaging portability We want NUT to build and run everywhere possible
Projects
None yet
Development

No branches or pull requests

1 participant