gnu: Add priv-wrapper.

* gnu/packages/samba.scm (priv-wrapper): New variable.

Change-Id: Iee0cca7e93ddfff8e64782779cd9edaa0c3fa4f7
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-26 15:52:29 +02:00 committed by Sharlatan Hellseher
parent 3c140aab9b
commit 73eb38eeb0
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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")