summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMichael Raitza <spacefrogg-github@meterriblecrew.net>2018-06-07 16:44:04 +0200
committerMichael Raitza <spacefrogg-github@meterriblecrew.net>2018-06-07 16:44:04 +0200
commite598fdf2294998b233d11ae707dc22230b5d67e2 (patch)
tree7ef7b49059e279f65d5d1cbca3a4703c178f7849 /nixos
parenteceff79fb650ab7905c3a96e8474c1e672d469ca (diff)
downloadnixlib-e598fdf2294998b233d11ae707dc22230b5d67e2.tar
nixlib-e598fdf2294998b233d11ae707dc22230b5d67e2.tar.gz
nixlib-e598fdf2294998b233d11ae707dc22230b5d67e2.tar.bz2
nixlib-e598fdf2294998b233d11ae707dc22230b5d67e2.tar.lz
nixlib-e598fdf2294998b233d11ae707dc22230b5d67e2.tar.xz
nixlib-e598fdf2294998b233d11ae707dc22230b5d67e2.tar.zst
nixlib-e598fdf2294998b233d11ae707dc22230b5d67e2.zip
dbus: Add NSS modules path to dbus system bus service
 DBus seems to resolve user IDs directly via glibc, circumventing nscd. In more
 advanced setups this leads to user's coming from LDAP or SSSD not being
 resolved by the dbus system bus daemon. The effect for such users is, that all
 access to the system bus (e.g. busctl or nmcli) is denied.

 Adding the respective NSS modules to the service's environment solves the issue
 the same way it does for nscd.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/system/dbus.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix
index 643bec188142..248df7351a8c 100644
--- a/nixos/modules/services/system/dbus.nix
+++ b/nixos/modules/services/system/dbus.nix
@@ -100,6 +100,7 @@ in
       # Don't restart dbus-daemon. Bad things tend to happen if we do.
       reloadIfChanged = true;
       restartTriggers = [ configDir ];
+      environment = { LD_LIBRARY_PATH = config.system.nssModules.path; };
     };
 
     systemd.user = {