Update to version 1.1.16
OBS-URL: https://build.opensuse.org/package/show/devel:tools/nss_wrapper?expand=0&rev=47
This commit is contained in:
commit
544aea2bf6
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
BIN
nss_wrapper-1.1.15.tar.gz
(Stored with Git LFS)
Normal file
BIN
nss_wrapper-1.1.15.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
16
nss_wrapper-1.1.15.tar.gz.asc
Normal file
16
nss_wrapper-1.1.15.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEjf9T4Y8qvI2PPJIjfuD8TcwBTj0FAmPRTgYACgkQfuD8TcwB
|
||||
Tj20jxAAlm7ArKtzRTX4iTvBpa9lq4bGqRQp44GTiXi6JNcDfkG8vdNhC9M+ivWR
|
||||
WXJzmtHYhNLCa0exQW2i2KSE1VKiljVNj4bcDrhVLxihOqKZBppfybyiKlN1LpJ9
|
||||
8MUpKI8SwhA3bwR5v7t5GdVbCGulh6Qbr7j8Ix9wlfif3GzmXeodbUr9gGjCN3BU
|
||||
+xa+gmPkfa6V2sz3kfbdme1w33xRwKUeYkEN1jZ6gNNlH3CYcusQaxgQ6RkL5atY
|
||||
Ax3wvSfGoeQsjQLOzUbORnLjdekh5Y4GgxWmyfAoQBPKEP07sCjq7Sp317xJiqUG
|
||||
DWVe1PIO9nJHyA3Tdwx2G2oVT47emLK8QndJcE5B+h/o+x60dATXG+7dZJBtzjNa
|
||||
9L4Kri4Lq5gc7iZcvbm4MQMmKse7BKCMl6pHIhF4WfH2lt1Xd2FCNSAEVv9Q+OzH
|
||||
gdvVEJm8+6npV99+fP/WzVBHY6MRpOFIijPVJzDvNlCIrEbfx7pfjoE+nQcqnBgs
|
||||
PT0n15nbP+sOQIVtmXZ7Tkd0FRCaC/dYNGEuqceua60enjO6zff30LaGjM97rNgW
|
||||
lNjylfHaS9EXQd/I2UjHUHdSkJfGAw7RgCVLV2tUmTG7VvE+DapQzfql8ONNADup
|
||||
mMeI3UZUffN0fS5gDd67tOm+iUB1X9azkYLPd5M5GZFAfWuBiqU=
|
||||
=nRU2
|
||||
-----END PGP SIGNATURE-----
|
3
nss_wrapper-1.1.16.tar.gz
Normal file
3
nss_wrapper-1.1.16.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dc79ab072779be4403b45b60cd044dd13780d4bb9675d27abf1932ada7c8a88d
|
||||
size 190469
|
16
nss_wrapper-1.1.16.tar.gz.asc
Normal file
16
nss_wrapper-1.1.16.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEjf9T4Y8qvI2PPJIjfuD8TcwBTj0FAmaHsEEACgkQfuD8TcwB
|
||||
Tj2+3Q//XX4vZkMLcoylkwQq/kg/zRWNDFUerquQFgFYhVSEwmHNNdyhhWF00dsz
|
||||
PcYeJy1IVIcIwj/lMYBEz9wL/LAg+qiruKbVkZDzuYTzZDMF7YEk4Z7ybXSD6ErE
|
||||
GGbx/TRT0yZxge2Q+tvrKaSG1JKNwF+Yr4Iis7lACc1vFQ+moIuJ1YvZggPoQkr3
|
||||
ZMxp8YZh+Mr3ASKMmRNwXJ+wIk0mjpV3njSyI7WNdoq4uGPWbVcFyRnWSgpLXd1L
|
||||
s0R6FEHeijZPkNzFqddWCe4p0YE5klHwi6F0PxsqtAV1H//b14tva7N73vZVxYKB
|
||||
1idkN3oMDoP6wxo1thj3/oMnPmp1DaBFbbE/HvvE0rDh0plVhVBQFxJ4xPvXI+r/
|
||||
v3Q6Wxf1lx7l+dh2TWl3UJ+6YWTogQhwAjf906PVlNc1kS+e6daf3uL7aqeLv1WK
|
||||
Bai7QF/3b6N+FSDWE/9CMt/zqPTAaeEm2qYt8qIkGKPUdXI3z4y4I303GPXUDPHr
|
||||
u6J4adNSqNqDv3mjY8OcvgTCX+/QLB40QSFChXS858aUk8zfgq7ewx/4nhaNEI/T
|
||||
nwxm0R5JjKTpySOUEcn4I8hHb4cJ3nIkQAI/IZ2gGEGYHkTQrGryJi4xt9vKY+xM
|
||||
/RuIiaXwAJZ9FtYhua/rhvh7idTYs/wX3Nzvz4vsmZjjg98CZlU=
|
||||
=PNx5
|
||||
-----END PGP SIGNATURE-----
|
31
nss_wrapper-fix-cmocka-1.1.6+-support.patch
Normal file
31
nss_wrapper-fix-cmocka-1.1.6+-support.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From 2c879a0ffa70cee33329291d7576ec971d420da2 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Schneider <asn@samba.org>
|
||||
Date: Fri, 17 Feb 2023 17:51:27 +0100
|
||||
Subject: [PATCH] cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Andreas Schneider <asn@samba.org>
|
||||
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
|
||||
---
|
||||
tests/CMakeLists.txt | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 3b94076..733cc4e 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -1,5 +1,9 @@
|
||||
project(tests C)
|
||||
|
||||
+if (TARGET cmocka::cmocka)
|
||||
+ set(CMOCKA_LIBRARY cmocka::cmocka)
|
||||
+endif()
|
||||
+
|
||||
set(TESTSUITE_LIBRARIES nss_utils ${NWRAP_REQUIRED_LIBRARIES} ${CMOCKA_LIBRARY})
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
|
||||
|
||||
--
|
||||
2.39.2
|
||||
|
8
nss_wrapper-rpmlintrc
Normal file
8
nss_wrapper-rpmlintrc
Normal file
@ -0,0 +1,8 @@
|
||||
# This is a special library only for testing purposes. You cannot link this
|
||||
# library. It is only inteded to be used with LD_PRELOAD. This package is
|
||||
# the devel package.
|
||||
#
|
||||
# Learn more at http://cwrap.org
|
||||
#
|
||||
addFilter("devel-file-in-non-devel-package")
|
||||
addFilter("binary-or-shlib-calls-gethostbyname")
|
179
nss_wrapper.changes
Normal file
179
nss_wrapper.changes
Normal file
@ -0,0 +1,179 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 5 09:35:44 UTC 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 2 11:00:33 UTC 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 08:16:39 UTC 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 15:45:26 UTC 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 11:13:12 UTC 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 9 06:48:12 UTC 2022 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.13
|
||||
* Fixed possible mutex and threading issues
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 24 08:14:05 UTC 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 7 22:07:59 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- avoid filelist from filesystem package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 31 14:00:41 UTC 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 19 09:53:19 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.10
|
||||
* Fixed crash bug in OpenLDAP libraries with gethostbyname_r()
|
||||
* Code cleanup in gethostbyname(2)(_r) functions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 16 16:14:14 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.9
|
||||
* Fixed log spam when loading modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 17 10:22:31 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.8
|
||||
* Fixed path to library in nss_wrapper.pc
|
||||
* Try different backends for gethostbyaddr nd gethostbyname
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 13 07:46:15 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.7
|
||||
* Added NSS_WRAPPER_DISABLE_DEEPBIND env variable
|
||||
* Improvded logging
|
||||
* Fixed location in cmake config
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 21 09:07:07 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Change Requires to Recommends for cmake and pkgconf
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 05:51:10 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.6
|
||||
* Fixed issues with memory alignment of getgrnam()
|
||||
* Fixed getpwnam() on FreeBSD
|
||||
* Started to use modern cmake (>= 3.5.0)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 31 13:25:29 UTC 2018 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.5
|
||||
* Fixed running on older distributions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 31 07:30:25 UTC 2018 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 1.1.4
|
||||
* Fixed module getpw* functions
|
||||
* Fixed nss_wrapper.pl to use correct perl binary
|
||||
* Fixed compatibility with musl-libc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 21 18:19:18 UTC 2016 - asn@cryptomilk.org
|
||||
|
||||
- Update to version 1.1.3
|
||||
* Added support for BSD 'struct passwd' members
|
||||
* Replaced strcpy() with snprintf()
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 14 10:51:29 UTC 2016 - jengelh@inai.de
|
||||
|
||||
- Editorial fixes to the description
|
||||
- Use %_smp_mflags for parallel build instead
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 14 08:34:11 UTC 2016 - asn@cryptomilk.org
|
||||
|
||||
- Update to version 1.1.2
|
||||
* Fixed segfault while reloading hosts file
|
||||
* Fixed issue where are not fault tolerant if an alias has already
|
||||
been added
|
||||
* Fixed nss_wrapper build on Solaris
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 20 11:17:53 UTC 2015 - asn@cryptomilk.org
|
||||
|
||||
- Update to version 1.1.0
|
||||
* Added support for initgroups()
|
||||
* Added support for shadow files (getspnam(), etc.)
|
||||
* Improved support for multi address handling in getaddrinfo()
|
||||
* Improved file parser
|
||||
* Fixed compilation on machines without IPv4 support
|
||||
* Fixed service string sanity check in getaddrinfo() (bso #11501)
|
||||
* Fixed AI_NUMERICHOST handling in getaddrinfo() (bso # 11477)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 3 06:48:22 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
- Rename rpmlintrc to match packaging guidelines
|
||||
- Add rpmlintrc as source
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 11 06:33:35 UTC 2015 - asn@cryptomilk.org
|
||||
|
||||
- Cleanup specfile
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 11 14:23:20 UTC 2014 - asn@cryptomilk.org
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 13 10:09:46 UTC 2014 - asn@cryptomilk.org
|
||||
|
||||
- Initial package.
|
||||
|
BIN
nss_wrapper.keyring
Normal file
BIN
nss_wrapper.keyring
Normal file
Binary file not shown.
97
nss_wrapper.spec
Normal file
97
nss_wrapper.spec
Normal file
@ -0,0 +1,97 @@
|
||||
#
|
||||
# spec file for package nss_wrapper
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
############################# NOTE ##################################
|
||||
#
|
||||
# This is a special library. You are not able to link this library.
|
||||
# Do NOT create library package or a devel package!
|
||||
#
|
||||
############################# NOTE ##################################
|
||||
Name: nss_wrapper
|
||||
Version: 1.1.16
|
||||
Release: 0
|
||||
Summary: A wrapper for the user, group and hosts NSS API
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://cwrap.org/
|
||||
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
||||
Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
|
||||
Source2: https://cryptomilk.org/gpgkey-8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D.gpg#/%{name}.keyring
|
||||
Source3: %{name}-rpmlintrc
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libcmocka-devel
|
||||
BuildRequires: netcfg
|
||||
Recommends: cmake
|
||||
Recommends: pkgconf
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DUNIT_TESTING=ON
|
||||
|
||||
%make_build VERBOSE=1
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
find %{buildroot}%{_bindir} -name "*.pl" \
|
||||
| xargs sed -i '1 s|/usr/bin/env\ perl|/usr/bin/perl|'
|
||||
|
||||
%check
|
||||
%ctest
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc AUTHORS README.md CHANGELOG
|
||||
%license LICENSE
|
||||
%{_bindir}/nss_wrapper.pl
|
||||
%{_libdir}/libnss_wrapper.so*
|
||||
%dir %{_libdir}/cmake/nss_wrapper
|
||||
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config-version.cmake
|
||||
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config.cmake
|
||||
%{_libdir}/pkgconfig/nss_wrapper.pc
|
||||
%{_mandir}/man1/nss_wrapper.1%{?ext_man}
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user