accountsservice: add nixbld* to blacklist

This commit is contained in:
Alexander Ried 2016-06-01 13:01:51 +02:00
parent ef35c66fe7
commit 8a547ae092
2 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1,27 @@
From e069102365a9ff03822667f435e662f938e8d768 Mon Sep 17 00:00:00 2001
From: Alexander Ried <ried@mytum.de>
Date: Wed, 1 Jun 2016 12:49:48 +0200
Subject: [PATCH] Add nixbld* to user blacklist
---
src/user-classify.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/user-classify.c b/src/user-classify.c
index 69e6809..0e152b6 100644
--- a/src/user-classify.c
+++ b/src/user-classify.c
@@ -75,6 +75,10 @@ user_classify_is_blacklisted (const char *username)
return TRUE;
}
+ if (g_str_has_prefix (username, "nixbld")) {
+ return TRUE;
+ }
+
return FALSE;
}
--
2.7.4

View File

@ -20,7 +20,10 @@ stdenv.mkDerivation rec {
substituteInPlace src/user.c --replace '"/usr/sbin/' '"/run/current-system/sw/sbin/' --replace '"/usr/bin/' '"/run/current-system/sw/bin' --replace '"/bin/cat"' '"/run/current-system/sw/bin/cat"'
'';
patches = [ ./no-create-dirs.patch ];
patches = [
./no-create-dirs.patch
./Add-nixbld-to-user-blacklist.patch
];
preFixup = ''
wrapProgram "$out/libexec/accounts-daemon" \