Re: Trying to set context on a FIFO for nut_upsmon_t process
Henry Zhang <[email protected]> Thu, 8 Jun 2023 14:12:21 -0700
| Newsgroups | gmane.linux.redhat.fedora.selinux |
|---|---|
| Message-ID | <CANTW0yrp2vC4TMCq+sFiCGZBo4Yt41W4nhu=uy_f2gKKpZWZ4Q@mail.gmail.com> |
Robert, If your application fails due to selinux policy, you could check /var/log/audit/audit.log. If the audit.log contains denial, please post or attach the log here. It should show what kind of policy your application needed in order to execute it. ---henry On Thu, Jun 8, 2023 at 12:03 PM Robert Nichols <[email protected]> wrote: > SELinux is not allowing me to set the needed context on a FIFO that will > be written by a nut_upsmon_t process. Runnin sesearch to find suitable > types yields: > allow nut_upsmon_t nut_upsmon_t:fifo_file { append getattr ioctl lock > open read write }; > But, when I try to run "chcon -t nut_upsmon_t /path/to/fifo" I get > "permission denied" and an SELinux alert than complains > If you want to change the label of .alertFIFO2 to nut_upsmon_t, you are > not allowed to since it is not a valid file type. > Then you must pick a valid file label. > Do > select a valid file type. List valid file labels by executing: > # seinfo -afile_type -x > That returns info for files, not FIFOs. > > Once again, SELinux is causing me more problems than any virus would. > _______________________________________________ > selinux mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/[email protected] > Do not reply to spam, report it: > https://pagure.io/fedora-infrastructure/new_issue > _______________________________________________ selinux mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue