diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-07-26 15:52:29 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-07 09:01:25 +0100 |
| commit | 73eb38eeb00e61ff7a04a3c74099b99942768017 (patch) | |
| tree | ff396ca6566afb93e3dc6d7e23842b14c852be46 /gnu/packages | |
| parent | 3c140aab9b6920cd2e4bc3e42d491748aa6e8288 (diff) | |
gnu: Add priv-wrapper.
* gnu/packages/samba.scm (priv-wrapper): New variable.
Change-Id: Iee0cca7e93ddfff8e64782779cd9edaa0c3fa4f7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/samba.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm index 3cc6139479e..8077e189409 100644 --- a/gnu/packages/samba.scm +++ b/gnu/packages/samba.scm @@ -253,6 +253,35 @@ combine it with the CMocka unit testing framework or use the provided Python bindings to write tests for modules in Python.") (license license:bsd-3))) +(define-public priv-wrapper + (package + (name "priv-wrapper") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.samba.org/priv_wrapper.git/") + (commit (string-append "priv_wrapper-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04ycb3fckcz3ck1wbg9gh6x63ydkpjyc1v4340l6sdw90w7rlr66")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DUNIT_TESTING=ON"))) + (native-inputs (list cmocka)) + (home-page "https://cwrap.org/priv_wrapper.html") + (synopsis "Library to drop privileges") + (description + "This package provides a library to disable resource limits and other +privilege dropping, i.e. disabling @code{chroot}, @code{prctl}, +@code{pledge} and @code{setrlmit} system calls. This package aims to help +running processes which are dropping privileges or are restricting resources +in test environments. A disabled call always succeeds (i.e. returns 0) and +does nothing.") + (license license:bsd-3))) + (define-public resolv-wrapper (package (name "resolv-wrapper") |
