-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
NixOS/nixpkgs
#46028Labels
Description
I have just come across this trying to install Nix on Fedora 28 Workstation with SELinux enabled (default) using the ./install-multi-user script from the nix-2.0.4-x86_64-linux bundle.
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo systemctl link /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.service
to set up the nix-daemon service
Failed to link unit: Access denied
I can confirm this is an SELinux denial due to this AVC message in /var/log/audit/audit.log:
type=AVC msg=audit(1535267537.912:2983): avc: denied { read } for pid=1 comm="systemd" name="default" dev="nvme0n1p7" ino=2095622 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:default_t:s0 tclass=lnk_file permissive=0
This issue seems to be the same as the one discussed in #nixos-dev.
Based on the nature of the error, I would naturally assume all SELinux-enabled systems would be affected by this.
Reactions are currently unavailable