A wrapper for the user, group and hosts NSS API
There are projects which provide daemons needing 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 file. With nss_wrapper it is possible to define
your own passwd and groups file 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 doesn't have a devel package cause this project is for
development/testing.
- Sources inherited from project devel:tools
- Devel package for openSUSE:Factory
-
1
derived packages
- Links to openSUSE:Factory / nss_wrapper
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:redwil:15.4/nss_wrapper && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
nss_wrapper-1.0.3.tar.gz | 0000042535 41.5 KB | |
nss_wrapper.changes | 0000000540 540 Bytes | |
nss_wrapper.rpmlintrc | 0000000325 325 Bytes | |
nss_wrapper.spec | 0000002788 2.72 KB |
Revision 4 (latest revision is 46)
- Update to version 1.0.3. * Added a nss_wrapper manpage. * Fixed cmake find_package configs. * Fixed resolving hostnames with a trailing dot. * Fixed an overflow when checking if a IPv6 address is IPv4. * Fall back to RTLD_NEXT for symbol binding if we can't find libc.
Comments 0