From 785684f6c2367ce979d908e25dd7831992f19f24 Mon Sep 17 00:00:00 2001 From: Parnell Springmeyer Date: Thu, 26 Jan 2017 00:39:17 -0800 Subject: [PATCH] Ahhh, my compile-time macros confused me...of course they did... --- .../security/permissions-wrappers/permissions-wrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/security/permissions-wrappers/permissions-wrapper.c b/nixos/modules/security/permissions-wrappers/permissions-wrapper.c index 9834bcd937b5..f74a952b7d84 100644 --- a/nixos/modules/security/permissions-wrappers/permissions-wrapper.c +++ b/nixos/modules/security/permissions-wrappers/permissions-wrapper.c @@ -211,9 +211,9 @@ int main(int argc, char * * argv) // Read the capabilities set on the file and raise them in to the // Ambient set so the program we're wrapping receives the // capabilities too! - - + #ifdef WRAPPER_SETCAP assert(!make_caps_ambient(selfPath)); + #endif execve(sourceProg, argv, environ);