summary refs log tree commit diff
path: root/nixos/modules/security
diff options
context:
space:
mode:
authorParnell Springmeyer <parnell@digitalmentat.com>2017-01-26 00:39:17 -0800
committerParnell Springmeyer <parnell@digitalmentat.com>2017-01-26 00:39:17 -0800
commit785684f6c2367ce979d908e25dd7831992f19f24 (patch)
treeb85985a9b97698a49043b5ebb510dd3abc66d993 /nixos/modules/security
parent1ad541171e5d9362dce100de08d46fff91cab4d1 (diff)
downloadnixlib-785684f6c2367ce979d908e25dd7831992f19f24.tar
nixlib-785684f6c2367ce979d908e25dd7831992f19f24.tar.gz
nixlib-785684f6c2367ce979d908e25dd7831992f19f24.tar.bz2
nixlib-785684f6c2367ce979d908e25dd7831992f19f24.tar.lz
nixlib-785684f6c2367ce979d908e25dd7831992f19f24.tar.xz
nixlib-785684f6c2367ce979d908e25dd7831992f19f24.tar.zst
nixlib-785684f6c2367ce979d908e25dd7831992f19f24.zip
Ahhh, my compile-time macros confused me...of course they did...
Diffstat (limited to 'nixos/modules/security')
-rw-r--r--nixos/modules/security/permissions-wrappers/permissions-wrapper.c4
1 files 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);