From 5af01842c827732db29dfe960fb9292b3c0a89a3 Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 21 Feb 2014 16:16:32 +0000 Subject: [PATCH] Version 1.5.9 - Add manpages for get_persistent. - Fix memory leaks in keyctl_describe/read/get_security_alloc(). - Use keyctl_describe_alloc in dump_key_tree_aux rather than open coding it. - Exit rather than returning from act_xxx() functions. - Fix memory leak in dump_key_tree_aux. - Only get the groups list if we need it. - Don't trust sscanf's %n argument. - Use the correct path macros in the specfile. - Avoid use realloc when the memory has no content. - Fix a bunch of issues in key.dns_resolver. - Fix command table searching in keyctl utility. - Fix a typo in the permissions mask constants. - Improve the keyctl_read manpage. - Add man7 pages describing various keyrings concepts. --- .gitignore | 2 +- keyutils.spec | 59 ++++++++++++++++++++++++++++++++++++++------------- sources | 2 +- 3 files changed, 46 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 6056bd8..6e0a660 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/keyutils-1.5.8.tar.bz2 +/keyutils-1.5.9.tar.bz2 diff --git a/keyutils.spec b/keyutils.spec index b1ba3e8..3312f84 100644 --- a/keyutils.spec +++ b/keyutils.spec @@ -1,8 +1,6 @@ %define vermajor 1 -%define verminor 5.8 +%define verminor 5.9 %define version %{vermajor}.%{verminor} -%define libdir /%{_lib} -%define usrlibdir %{_prefix}/%{_lib} %define libapivermajor 1 %define libapiversion %{libapivermajor}.5 @@ -47,11 +45,19 @@ This package provides headers and libraries for building key utilities. %prep %setup -q +%define datadir %{_datarootdir}/keyutils + %build make \ NO_ARLIB=1 \ - LIBDIR=%{libdir} \ - USRLIBDIR=%{usrlibdir} \ + ETCDIR=%{_sysconfdir} \ + LIBDIR=%{_libdir} \ + USRLIBDIR=%{_libdir} \ + BINDIR=%{_bindir} \ + SBINDIR=%{_sbindir} \ + MANDIR=%{_mandir} \ + INCLUDEDIR=%{_includedir} \ + SHAREDIR=%{datadir} \ RELEASE=.%{release} \ NO_GLIBC_KEYERR=1 \ CFLAGS="-Wall $RPM_OPT_FLAGS -Werror" @@ -61,8 +67,14 @@ rm -rf $RPM_BUILD_ROOT make \ NO_ARLIB=1 \ DESTDIR=$RPM_BUILD_ROOT \ - LIBDIR=%{libdir} \ - USRLIBDIR=%{usrlibdir} \ + ETCDIR=%{_sysconfdir} \ + LIBDIR=%{_libdir} \ + USRLIBDIR=%{_libdir} \ + BINDIR=%{_bindir} \ + SBINDIR=%{_sbindir} \ + MANDIR=%{_mandir} \ + INCLUDEDIR=%{_includedir} \ + SHAREDIR=%{datadir} \ install %clean @@ -74,27 +86,44 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README LICENCE.GPL -/sbin/* -/bin/* -/usr/share/keyutils +%{_sbindir}/* +%{_bindir}/* +%{datadir} %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man8/* -%config(noreplace) /etc/* +%config(noreplace) %{_sysconfdir}/* %files libs %defattr(-,root,root,-) %doc LICENCE.LGPL -%{libdir}/libkeyutils.so.%{libapiversion} -%{libdir}/libkeyutils.so.%{libapivermajor} +%{_mandir}/man7/* +%{_libdir}/libkeyutils.so.%{libapiversion} +%{_libdir}/libkeyutils.so.%{libapivermajor} %files libs-devel %defattr(-,root,root,-) -%{usrlibdir}/libkeyutils.so +%{_libdir}/libkeyutils.so %{_includedir}/* %{_mandir}/man3/* %changelog +* Fri Feb 21 2014 David Howells - 1.5.9-1 +- Add manpages for get_persistent. +- Fix memory leaks in keyctl_describe/read/get_security_alloc(). +- Use keyctl_describe_alloc in dump_key_tree_aux rather than open coding it. +- Exit rather than returning from act_xxx() functions. +- Fix memory leak in dump_key_tree_aux. +- Only get the groups list if we need it. +- Don't trust sscanf's %n argument. +- Use the correct path macros in the specfile. +- Avoid use realloc when the memory has no content. +- Fix a bunch of issues in key.dns_resolver. +- Fix command table searching in keyctl utility. +- Fix a typo in the permissions mask constants. +- Improve the keyctl_read manpage. +- Add man7 pages describing various keyrings concepts. + * Fri Oct 4 2013 David Howells - 1.5.8-1 - New lib symbols should go in a new library minor version. @@ -147,7 +176,7 @@ rm -rf $RPM_BUILD_ROOT - Add recursive scan utility function. - Add bad key reap command to keyctl. - Add multi-unlink variant to keyctl unlink command. -- Add multi key purger command to keyctl. +- Add multi key purge command to keyctl. - Handle multi-line commands in keyctl command table. - Move the package to version to 1.5. diff --git a/sources b/sources index 495d9dc..04a95ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3c7f463039b83833c12a9414c2fcb389 keyutils-1.5.8.tar.bz2 +7f8ac985c45086b5fbcd12cecd23cf07 keyutils-1.5.9.tar.bz2