Skip to content

feat: add SELinux contexts, mention relevance for other Nitrokey Apps #286

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion software/nitropy/linux/udev.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Setting up The udev Rules
=========================

To be able to access your devices without root privileges, nitropy requires the
To be able to access your devices without root privileges, nitropy and all other Nitrokey Apps require the
Nitrokey udev rules. If they are not shipped with your distribution, you can
install the rules manually::

Expand All @@ -16,6 +16,13 @@ You most likely want to change the owner and the permissions of this file::
sudo chown root:root /etc/udev/rules.d/41-nitrokey.rules
sudo chmod 644 /etc/udev/rules.d/41-nitrokey.rules

On Systems using SElinux (like Fedora, RHEL or Derivatives and CentOS Stream), you may also want to fix the SElinux Contexts. You can use ``ls -Z`` to view them before and after changing them, to verify that you are executing the correct command.::

cd /etc/udev/rules.d
ls -Z
sudo chcon -R system_u:object_r:udev_rules_t:s0 .
ls -Z

After installing the rules, you need to reload them::

sudo udevadm control --reload-rules && sudo udevadm trigger
Expand Down