Closed marcosdalvarez closed 1 year ago
What's the output of sudo systemctl status tudor-host-launcher
?
The output is:
$ sudo systemctl status tudor-host-launcher
○ tudor-host-launcher.service - Tudor host launcher DBus service
Loaded: loaded (/usr/lib/systemd/system/tudor-host-launcher.service; static)
Active: inactive (dead)
abr 10 18:02:15 fedora systemd[1]: Starting tudor-host-launcher.service - Tudor host launcher DBus service...
abr 10 18:02:15 fedora systemd[1]: Started tudor-host-launcher.service - Tudor host launcher DBus service.
abr 10 18:02:15 fedora systemd[1]: tudor-host-launcher.service: Deactivated successfully.
I remember that in the first attempt to install udev it gave an error that the plugdev group did not exist, I did a sudo groupadd plugdev
and the error no longer appeared... could that have something to do with it?
Thank you!!!
I kept experimenting and found that the problem is with selinux. If I set it to permissive mode the sensor works. Now I'm going to have to study how to configure selinux correctly because I have no idea how to do it. Thank you!!!
Did you manage to write a SELinux configuration file for it?
I kept experimenting and found that the problem is with selinux. If I set it to permissive mode the sensor works. Now I'm going to have to study how to configure selinux correctly because I have no idea how to do it. Thank you!!!
Did you manage to write a SELinux configuration file for it?
No, I finally did nothing and just left it at that.
Did you manage to write a SELinux configuration file for it?
No, I finally did nothing and just left it at that.
So you left it in permissive mode?
So you left it in permissive mode?
I left it like that for a while and then I switched to Arch Linux and it doesn't use Selinux
Tried to get it working on Fedora, but without luck SELinux is not blocking it and there is no errors in journalctl
EDIT: I'm going back to Arch
Hello!
I'm chiming in because I wasn't satisfied with leaving SELinux in permissive mode, so I managed to write a "Type enforcement" file for synaTudor to work. (fprintd-tudor.te
) I've tested this in a fedora installation only, nonetheless here it is:
module fprintd-tudor 1.0;
require {
type unconfined_service_t;
type fprintd_t;
class unix_dgram_socket { getattr getopt };
}
#============= fprintd_t ==============
allow fprintd_t unconfined_service_t:unix_dgram_socket { getattr getopt };
I don't know if this can be included in the project repo in any way, so I'm leaving it here.
For anyone who doesn't know how to use/install this file so SELinux allows synaTudor to work, here is a step by step guide:
checkmodule
and semodule_package
. In fedora these are the checkpolicy
and policycoreutils
packages.fprintd-tudor.te
(If not the next commands might throw errors, even if you change the filename accordingly in the commands below). This can be done in a temporary directory.checkmodule -M -m -o fprintd-tudor.mod fprintd-tudor.te && semodule_package -m fprintd-tudor.mod -o fprintd-tudor.pp
in a terminal.semodule -s targeted -i fprintd-tudor.pp
as root. You can delete the generated files (fprintd-tudor.te
, fprintd-tudor.mod
and fprintd-tudor.pp
) from your working directory.Thanks!!
Hello! First of all thank you very much for creating the controller for this sensor!!! I'm trying to get it to work on Fedora 37 and can't get it to detect the sensor:
I did the steps on a virtual installation of Ubuntu (VirtualBox) and it worked fine, but on Fedora (which is my real distro) I can't get it to detect the sensor. I don't know how to continue diagnosing, could you help me. Thank you!!!
Sorry for my english, I'm using google translate.