add a hack to preload the sss nss library

This commit is contained in:
Dennis Gilmore 2014-08-21 13:41:32 -05:00
parent 69f66ab017
commit ed41d49e30
2 changed files with 25 additions and 1 deletions

19
appliance-tools-nss.hack Normal file
View File

@ -0,0 +1,19 @@
diff --git a/tools/appliance-creator b/tools/appliance-creator
index c5f75f2..1708431 100755
--- a/tools/appliance-creator
+++ b/tools/appliance-creator
@@ -160,7 +160,14 @@ def main():
return 0
+def do_nss_sss_hack():
+ import ctypes as forgettable
+ hack = forgettable._dlopen('libnss_sss.so.2')
+ del forgettable
+ return hack
+
if __name__ == "__main__":
+ hack = do_nss_sss_hack()
sys.exit(main())

View File

@ -5,7 +5,7 @@
Summary: Tools for building Appliances
Name: appliance-tools
Version: 007.8
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2
Group: System Environment/Base
URL: http://thincrust.org/
@ -16,6 +16,7 @@ URL: http://thincrust.org/
# git checkout appliance-tools-007.8
# make dist
Source0: appliance-tools-%{version}.tar.bz2
Patch0: appliance-tools-nss.hack
Requires: livecd-tools >= 020 curl rsync kpartx
Requires: zlib
Requires: qemu-img
@ -34,6 +35,7 @@ See http://thincrust.net for more details.
%prep
%setup -q
%patch0 -p1
%build
make
@ -61,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/ec2convert/*.pyc
%changelog
* Thu Aug 21 2014 Dennis Gilmore <dennis@ausil.us> - 007.8-4
- add a hack to preload the sss nss library
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild