SHA256
1
0
forked from pool/keyutils

Accepting request 113159 from home:jeff_mahoney:branches:security

- Add nfs4 idmap support

OBS-URL: https://build.opensuse.org/request/show/113159
OBS-URL: https://build.opensuse.org/package/show/security/keyutils?expand=0&rev=14
This commit is contained in:
Marcus Meissner 2012-04-11 08:24:13 +00:00 committed by Git OBS Bridge
parent 35535d23e7
commit 3f4e7826da
3 changed files with 24 additions and 7 deletions

View File

@ -1,4 +1,8 @@
-------------------------------------------------------------------
Wed Apr 11 03:43:35 UTC 2012 - jeffm@suse.com
- Add nfs4 idmap support
-------------------------------------------------------------------
Wed Oct 5 15:04:53 UTC 2011 - uli@suse.com
- cross-build fix: use %__cc macro

View File

@ -1,7 +1,7 @@
#
# spec file for package keyutils
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,20 +16,19 @@
#
Name: keyutils
%define lname libkeyutils1
Url: http://people.redhat.com/~dhowells/keyutils/
License: GPLv2+ ; LGPLv2.1+
Group: System/Kernel
AutoReqProv: on
Summary: Linux Key Management Utilities
License: GPL-2.0+ ; LGPL-2.1+
Group: System/Kernel
Version: 1.5.3
Release: 1
Release: 0
Source0: http://people.redhat.com/~dhowells/keyutils/%name-%version.tar.bz2
Source1: baselibs.conf
Patch1: request-key-cifs.patch
Patch2: parallel-make.patch
Patch3: request-key-nfs4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -50,7 +49,8 @@ system calls.
%package devel
Summary: Development package for building linux key management utilities
Group: System/Kernel
Requires: %lname = %version, glibc-devel
Requires: %lname = %version
Requires: glibc-devel
%description devel
This package provides headers and libraries for building key utilities.
@ -59,6 +59,7 @@ This package provides headers and libraries for building key utilities.
%setup -q
%patch1 -p0
%patch2 -p0
%patch3 -p1
%build
make %{?_smp_mflags} NO_ARLIB=1 CFLAGS="$RPM_OPT_FLAGS" CC="%__cc"

12
request-key-nfs4.patch Normal file
View File

@ -0,0 +1,12 @@
---
request-key.conf | 2 ++
1 file changed, 2 insertions(+)
--- a/request-key.conf
+++ b/request-key.conf
@@ -40,3 +40,5 @@ create user debug:loop:* * |/bin/cat
create user debug:* * /usr/share/keyutils/request-key-debug.sh %k %d %c %S
create cifs.spnego * * /usr/sbin/cifs.upcall -c %k
negate * * * /bin/keyctl negate %k 30 %S
+create id_resolver * * /usr/sbin/nfsidmap %k %d 600
+