Closed timrichardson closed 3 years ago
sudo setenforce Permissive
is a workaround, but I don't know if this is a good idea
I am completely new to SE Linux. This shows there is a difference between the lenovo_fix service and other service files.
[tim@moncrief system]$ ls -Z *.service
system_u:object_r:systemd_unit_file_t:s0 dbus-org.bluez.service
system_u:object_r:systemd_unit_file_t:s0 dbus-org.fedoraproject.FirewallD1.service
system_u:object_r:systemd_unit_file_t:s0 dbus-org.freedesktop.Avahi.service
system_u:object_r:systemd_unit_file_t:s0 dbus-org.freedesktop.ModemManager1.service
system_u:object_r:systemd_unit_file_t:s0 dbus-org.freedesktop.nm-dispatcher.service
system_u:object_r:systemd_unit_file_t:s0 dbus-org.freedesktop.resolve1.service
system_u:object_r:systemd_unit_file_t:s0 dbus.service
system_u:object_r:systemd_unit_file_t:s0 display-manager.service
unconfined_u:object_r:systemd_unit_file_t:s0 lenovo_fix.service
[tim@moncrief system]$
I fixed that, but there is still an error on the python process. This is way over my head. I set selinux to permissive mode.
This blog has good tips: http://www.martin-rdz.de/index.php/2019/12/12/selinux-systemd-and-python-virtual-environments/#comment-50
a working policy is:
module custom_rule 1.0;
require {
type init_t;
type unlabeled_t;
class lnk_file read;
}
#============= init_t ==============
allow init_t unlabeled_t:lnk_file read;
Use the COPR repo to install on Fedora: https://copr.fedorainfracloud.org/coprs/abn/throttled/ It does not have any SELinux issues.
thanks.
I'm getting a permission error on the lenovo_fix.service
It runs fine from the terminal, it's a SE Linux thing i think.