Yeah, selinux can be cryptic for sure! But you can get it going and keep
selinux enforcing. The RedHat documentation is your best bet.
To be sure that selinux is the problem you can set selinux to permissive
and test. If it works in permissive mode, you know it's selinux protecting
you. Here are some commands I use:
- *sestatus* to see if SELinux is enabled and what mode.
- *sudo setenforce 0* to set SELinux to permissive.
- *sudo setenforce 1 *to set SELInux to enforcing
- *getenforce* to see if it's enforcing
To help troubleshooting you can use *journalctl -t setroubleshoot*, or just
view the audit log directly in /var/log/audit/audit.log
If you have *setroubleshoot* installed, it will insert helpful messages
into the journal... they even give you commands to run so that you can
allow the actions SElinux previously denied.
For example:
If you believe that (*krusty-program*) should be allowed *read_thing*
access on the *krusty-home* directory 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 '(*krusty-program*)' --raw | audit2allow -M
*my-krusty-program*
# semodule -X 300 -i *my-krusty-program.pp*
On Sat, Feb 28, 2026 at 6:07 AM Waltwx <[email protected]> wrote:
> I am a new weewx user setting up a Davis Vantage Pro2 system at my house.
> My favored distribution is Fedora 43 (or latest). Installation for weewx
> suggests using pip for recent versions of Fedora/Redhat because the epel
> repos are dangerous and might contaminate my system.
>
> So... I've installed via pip and been successful, but not consistently.
> That is with the help of chatgpt.com (different answers from time to
> time), SELinux has been the problem. I'm not a sysadmin but only a
> neophyte when dealing with SELinux troubleshooting (although, it looks like
> I'll need to become an expert).
>
> QUESTION TO COMMUNITY
>
> What are the recommended directories, user names and practices to install
> on Fedora? It looks like I can create directories in places that SELinux
> for Fedora allows... or I can customize SELinux to place them where I want.
>
> What's the simplest and most straightforward way of doing the install?
>
> Walt Rogers - Palmdale, CA
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/weewx-user/46d9f934-8ea8-473f-88f2-fa8e4a6c9e6cn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/46d9f934-8ea8-473f-88f2-fa8e4a6c9e6cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/weewx-user/CA%2Bz%2BvD4_ieTF1zqyDiBa43OdPHeg--4ayhEPPhKEmipbGRkkSg%40mail.gmail.com.