diff options
author | Parnell Springmeyer <parnell@digitalmentat.com> | 2017-01-26 00:36:35 -0800 |
---|---|---|
committer | Parnell Springmeyer <parnell@digitalmentat.com> | 2017-01-26 00:36:35 -0800 |
commit | 1ad541171e5d9362dce100de08d46fff91cab4d1 (patch) | |
tree | 1f244d8ceee44f8589d4ed6c06da87703cf5a4eb /nixos/modules/security | |
parent | e8bec4c75f9da5c2e6a12b8f96630dae2d2d57d6 (diff) | |
download | nixlib-1ad541171e5d9362dce100de08d46fff91cab4d1.tar nixlib-1ad541171e5d9362dce100de08d46fff91cab4d1.tar.gz nixlib-1ad541171e5d9362dce100de08d46fff91cab4d1.tar.bz2 nixlib-1ad541171e5d9362dce100de08d46fff91cab4d1.tar.lz nixlib-1ad541171e5d9362dce100de08d46fff91cab4d1.tar.xz nixlib-1ad541171e5d9362dce100de08d46fff91cab4d1.tar.zst nixlib-1ad541171e5d9362dce100de08d46fff91cab4d1.zip |
Hmm
Diffstat (limited to 'nixos/modules/security')
-rw-r--r-- | nixos/modules/security/permissions-wrappers/permissions-wrapper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/security/permissions-wrappers/permissions-wrapper.c b/nixos/modules/security/permissions-wrappers/permissions-wrapper.c index 4a77e8aa3d55..9834bcd937b5 100644 --- a/nixos/modules/security/permissions-wrappers/permissions-wrapper.c +++ b/nixos/modules/security/permissions-wrappers/permissions-wrapper.c @@ -211,8 +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! - if (strcmp(wrapperType, "setcap") == 0) - assert(!make_caps_ambient(selfPath)); + + + assert(!make_caps_ambient(selfPath)); execve(sourceProg, argv, environ); |