There are projects which provide daemons that need to be able to create, modify
and delete Unix users, or just switch user IDs to interact with the system, e.g.
a user space file server. To be able to test that, you need the privilege to
modify the passwd and groups files. With nss_wrapper, it is possible to define
your own passwd and groups files which will be used by software to act correctly
while under test.
If you have a client and server under test, they normally use functions to
resolve network names to addresses (DNS) or vice versa. The nss_wrappers allow
you to create a hosts file to setup name resolution for the addresses you use
with socket_wrapper.
To use it, set the following environment variables:
LD_PRELOAD=libuid_wrapper.so
NSS_WRAPPER_PASSWD=/path/to/passwd
NSS_WRAPPER_GROUP=/path/to/group
NSS_WRAPPER_HOSTS=/path/to/host
This package does not have a devel package, because this project is for
development/testing.
Provides
Requires
License
BSD-3-Clause
Changelog
* Thu Jul 17 2025 Andreas Schneider <asn@cryptomilk.org>
- Added nwrap-fix-tests.patch
* Fri Jul 05 2024 Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.1.16
* Fixed segfault on FreeBSD
* Fixed copy&paste error in the destructor
* Fixed thread sanitizer on modern Linux Kernels
* Fixed building with newer cmocka versions
- Removed nss_wrapper-fix-cmocka-1.1.6+-support.patch
- Update rpmlintrc
* Thu Mar 02 2023 Dominique Leuenberger <dimstar@opensuse.org>
- Actually apply nss_wrapper-fix-cmocka-1.1.6+-support.patch (use
autosetup instead of setup).
* Mon Feb 27 2023 Andreas Schneider <asn@cryptomilk.org>
- Fix building with cmocka >= 1.1.6
* Added nss_wrapper-fix-cmocka-1.1.6+-support.patch
* Wed Jan 25 2023 Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.1.15
* Fixed linking issue in tests
* Fixed a memory leak in tests
* Wed Jan 25 2023 Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.1.14
* Fixed implementation of initgroups()
* Fixed implementation of getgrouplist()
* Avoid dclose(RTLD_NEXT)
* Wed Nov 09 2022 Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.1.13
* Fixed possible mutex and threading issues
* Fri Jun 24 2022 Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.1.12
* Added (de)contructor support on AIX with pragma init/finish
* Fixed possible crash in getaddrinfo()
* Fixed issues with processes closing all fds when forking
* Fixed issues with setgrent() and endpwent() nss module support
* Wed Apr 07 2021 Dirk Müller <dmueller@suse.com>
- avoid filelist from filesystem package
* Wed Mar 31 2021 Andreas Schneider <asn@cryptomilk.org>
- Update to version 1.1.11
* https://gitlab.com/cwrap/nss_wrapper/-/blob/nss_wrapper-1.1.11/CHANGELOG
Files
/usr/bin/nss_wrapper.pl
/usr/lib64/cmake/nss_wrapper
/usr/lib64/cmake/nss_wrapper/nss_wrapper-config-version.cmake
/usr/lib64/cmake/nss_wrapper/nss_wrapper-config.cmake
/usr/lib64/libnss_wrapper.so
/usr/lib64/libnss_wrapper.so.0
/usr/lib64/libnss_wrapper.so.0.3.5
/usr/lib64/pkgconfig/nss_wrapper.pc
/usr/share/doc/packages/nss_wrapper
/usr/share/doc/packages/nss_wrapper/AUTHORS
/usr/share/doc/packages/nss_wrapper/CHANGELOG
/usr/share/doc/packages/nss_wrapper/README.md
/usr/share/licenses/nss_wrapper
/usr/share/licenses/nss_wrapper/LICENSE
/usr/share/man/man1/nss_wrapper.1.gz
Generated by