-
Notifications
You must be signed in to change notification settings - Fork 86
Contributing RPM packaging and SELinux module #54
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
Comments
For those who want to try this using the current releases, here are RPMs for Fedora 33 x86_64 and of course the corresponding SRPMs to build yourself for other distros/releases: Installation instructions for Fedora 33:
Starting the service should suffice, but maybe better reboot. |
Amazing work, thank you @veitw |
Yes, I'm not sure that was a very good idea myself. There may not be any real hardware when you install the package, so it is not clear which firmware to download. It is also downloading a piece of software with it's own license without a user's explicit permission. |
Thanks for packaging it for Fedora 33! However I am getting almost the same error as @alexjfinch in issue #42 using your RPMs and instructions: ● python3-validity.service - python-validity driver dbus service nov 15 00:08:44 fedora-t470 dbus-service[5293]: Traceback (most recent call last): Any ideas? |
@rodgersan you can try to @veitw why these packages requires python3.9? any ideas to fix that?
|
Thanks @bwiercinski but somehow that folder was already there... concerning python 3.9, it's shipped by default on Fedora 33 if I am not mistaken. Are you on Fedora 33 by the way? |
@rodgersan nope... i think it's a good occasion to upgrade after fixing permission problems with |
@bwiercinski, sorry but what should be those working permissions? I have drwxr-xr-x, owner is root. I am not sure this is the problem as it tries to access /usr/share/python-validity/backoff which does not exist and does not seem to be provided by any of the rpm. Did you have the same error before getting python3.9 issues? |
python-validity is creating in my case after creating this directory backoff file was created by itself i had this issue when i was installing the library manually not via rpm are u starting python-validary service as |
Understood! Yet I am running everything as root to rule out any permission errors (and because of python-validity wiki). `Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): And if I run (root); python3.9 /usr/share/python-validity/playground/factory-reset.py
So I am lost... thanks anyway for your help! |
I am just realising I may have issues because of python-validity 0.9 leftovers!?!? Although when I run python3.9 -m pip list, I get python-validity 0.12! |
ok i've upgraded fedora to 33 and install python-validity via provided rpm packages |
Sorry for the noob question but neither calib-data.bin nor backoff exist on this repo. I am not having better results looking for them on the internet... are they really supposed to be there? or are they just scraps from previous versions? |
Those are runtime files. They are still in use ( |
after i have:
the same error i have when i do |
ok sorry for spamming but happy news! i've managed to make it work! 🎉 all you have to do is: sudo touch /usr/share/python-validity/backoff
sudo touch /usr/share/python-validity/calib-data.bin
# now you have to follow the instructions here: https://github.com/uunicorn/python-validity#error-situations and then:
cd /usr/share/python-validity && ls -la
# find driver file. in my case there is driver named: 6_07f_lenovo_mis_qm.xpfwext so:
sudo chmod 755 6_07f_lenovo_mis_qm.xpfwext and the best part: i had to repeat these steps few times and in the end i've managed to enroll my finder ✌️ best wishes! |
Good news indeed! |
try to disable the service, after that install rpms and follow my instructions. i think You are close. |
Good news indeed!
Thanks that all worked! I still had issues with validity-sensors-firmware trying to run from there: /usr/local/bin |
i've got lightdm with i3 and its automatically asking me about fingers. make sure to have |
Ouch, no it does not! Running fprintd-verify or fprintd-list MYUSERNAME, I get:
Any ideas? I am using gnome/gdm by the way. |
restart the service, delete all fingers and reenroll, verify? maybe a bug in this project |
bug report #61 was the solution, thanks. Finger enrolled for my user and verify is working. Still not able to use the fingerprint reader neither in gdm nor su. I first added my user to the input group without any luck, I am not seeing any option on the login screen or in gnome settings. auth sufficient pam_unix.so try_first_pass likeauth nullok Yet nothing worked even after restarting the computer. Lost again! :| |
Are you using Fedora and have you managed to get this sorted? I finally got it all working tonight. Instead of using Arch Wiki to edit those files in /etc/pam.d use "authselect" - I would remove any changes you've made to those files and then run; $ sudo authselect current This should be your output; Then run the following; $ sudo authselect enable-feature with-fingerprint This worked for me as I was having the same issues as you. This is the output of my authselect current; $ sudo authselect current Please note that once you reboot and have a registered fingerprint and log in with that fingerprint, gnome keyring still asks for your password straight afterwards as it sits outside of pam and therefore on first login with fingerprints you need to unlock it. I find after suspend, you can log in with your fingerprint and not have to enter your password again. Finally I did have the issue per #61 and #59 where by I needed to enable the resume and suspend services in systemd |
Hi, Thanks! Followed your instructions from getting all configuration files to defaults and then ran the autoselect commands. Regards, |
Hi @uunicorn,
I'd like to contribute the necessary bits to allow RPM packaging and usage on SELinux enabled systems for both python-validity and open-fprintd. Please see my pull requests #53 and uunicorn/open-fprintd#7.
The specfiles have been created close to the RedHat guidelines and tested on Fedora 33. I expect them to work on EL8 (RHEL 8, CentOS 8), too. Other RPM based distros such as openSUSE might need tweaking.
However the python-validity specfile uses a post install scriptlet derived from your Debian scripts, to make them as close as possible. But I expect this to prevent the package to be accepted into the distros, as I think automatically downloading and flashing firmware on package installation conflicts with RedHat's/Fedora's packaging rules.
For fprintd-clients, I decided to NOT use your fork of fprintd, but to use Fedora's fprintd package as template and only rename the package and to simply not package the daemon files. The result, fprintd-clients.spec, along with a patch file to the original fprintd package's fprintd.spec, has been attached: fprintd-clients.zip
Best regards,
// Veit
The text was updated successfully, but these errors were encountered: