<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/nfs/idmap.c, branch linux-3.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-09-16T16:36:06Z</updated>
<entry>
<title>KEYS: Remove key_type::match in favour of overriding default by match_preparse</title>
<updated>2014-09-16T16:36:06Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2014-09-16T16:36:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81'/>
<id>urn:sha1:c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81</id>
<content type='text'>
A previous patch added a -&gt;match_preparse() method to the key type.  This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-by: Vivek Goyal &lt;vgoyal@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'keys-fixes' into keys-next</title>
<updated>2014-07-22T20:55:45Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2014-07-22T20:55:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=633706a2ee81637be37b6bc02c5336950cc163b5'/>
<id>urn:sha1:633706a2ee81637be37b6bc02c5336950cc163b5</id>
<content type='text'>
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
</content>
</entry>
<entry>
<title>KEYS: user: Use key preparsing</title>
<updated>2014-07-22T20:46:17Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2014-07-18T17:56:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f9167789df53f22af771fb6690a3d36aa21d74c5'/>
<id>urn:sha1:f9167789df53f22af771fb6690a3d36aa21d74c5</id>
<content type='text'>
Make use of key preparsing in user-defined and logon keys so that quota size
determination can take place prior to keyring locking when a key is being
added.

Also the idmapper key types need to change to match as they use the
user-defined key type routines.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-by: Steve Dickson &lt;steved@redhat.com&gt;
Acked-by: Jeff Layton &lt;jlayton@primarydata.com&gt;
</content>
</entry>
<entry>
<title>KEYS: Allow special keys (eg. DNS results) to be invalidated by CAP_SYS_ADMIN</title>
<updated>2014-07-17T19:45:08Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2014-07-17T19:45:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c7774abb41bd00d5836d9ba098825a40fa94133'/>
<id>urn:sha1:0c7774abb41bd00d5836d9ba098825a40fa94133</id>
<content type='text'>
Special kernel keys, such as those used to hold DNS results for AFS, CIFS and
NFS and those used to hold idmapper results for NFS, used to be
'invalidateable' with key_revoke().  However, since the default permissions for
keys were reduced:

	Commit: 96b5c8fea6c0861621051290d705ec2e971963f1
	KEYS: Reduce initial permissions on keys

it has become impossible to do this.

Add a key flag (KEY_FLAG_ROOT_CAN_INVAL) that will permit a key to be
invalidated by root.  This should not be used for system keyrings as the
garbage collector will try and remove any invalidate key.  For system keyrings,
KEY_FLAG_ROOT_CAN_CLEAR can be used instead.

After this, from userspace, keyctl_invalidate() and "keyctl invalidate" can be
used by any possessor of CAP_SYS_ADMIN (typically root) to invalidate DNS and
idmapper keys.  Invalidated keys are immediately garbage collected and will be
immediately rerequested if needed again.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Tested-by: Steve Dickson &lt;steved@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFSv4: Convert idmapper to use the new framework for pipefs dentries</title>
<updated>2013-09-01T15:12:42Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2013-08-26T21:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2127d82af302be94066223311ca6ff317ee13ee0'/>
<id>urn:sha1:2127d82af302be94066223311ca6ff317ee13ee0</id>
<content type='text'>
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>NFSv4: Fix a potentially Oopsable condition in __nfs_idmap_unregister</title>
<updated>2013-08-30T13:19:38Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2013-08-26T21:26:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7631250b20119ea763d9ba461c3a9c5710cfa98'/>
<id>urn:sha1:d7631250b20119ea763d9ba461c3a9c5710cfa98</id>
<content type='text'>
Ensure that __nfs_idmap_unregister can be called twice without
consequences.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>NFSv4: Add tracepoints for debugging the idmapper</title>
<updated>2013-08-22T12:58:25Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2013-08-13T15:34:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f2d30b5338f1adaac249707ae49f1c675049cfc'/>
<id>urn:sha1:1f2d30b5338f1adaac249707ae49f1c675049cfc</id>
<content type='text'>
Add tracepoints to help debug uid/gid mappings to username/group.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>NFSv4: Deal with a sparse warning in nfs_idmap_get_key()</title>
<updated>2013-08-22T12:58:15Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2013-08-22T00:06:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=393faffe6f0d1cd3fb84dc591c4b220cd82efbb6'/>
<id>urn:sha1:393faffe6f0d1cd3fb84dc591c4b220cd82efbb6</id>
<content type='text'>
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Cc: Bryan Schumaker &lt;bjschuma@netapp.com&gt;
</content>
</entry>
<entry>
<title>NFS: Improve legacy idmapping fallback</title>
<updated>2013-06-28T19:22:07Z</updated>
<author>
<name>Bryan Schumaker</name>
</author>
<published>2013-06-26T18:09:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffa57b9e53cf7ace3e63e5fa9f91ffb31e0aacf6'/>
<id>urn:sha1:ffa57b9e53cf7ace3e63e5fa9f91ffb31e0aacf6</id>
<content type='text'>
Fallback should happen only when the request_key() call fails, because
this indicates that there was a problem running the nfsidmap program.
We shouldn't call the legacy code if the error was elsewhere.

Signed-off-by: Bryan Schumaker &lt;bjschuma@netappp.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>NFSv4: Fix the string length returned by the idmapper</title>
<updated>2013-03-20T20:45:16Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2013-03-08T17:56:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf4ab538f1516606d3ae730dce15d6f33d96b7e1'/>
<id>urn:sha1:cf4ab538f1516606d3ae730dce15d6f33d96b7e1</id>
<content type='text'>
Functions like nfs_map_uid_to_name() and nfs_map_gid_to_group() are
expected to return a string without any terminating NUL character.
Regression introduced by commit 57e62324e469e092ecc6c94a7a86fe4bd6ac5172
(NFS: Store the legacy idmapper result in the keyring).

Reported-by: Dave Chiluk &lt;dave.chiluk@canonical.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Cc: Bryan Schumaker &lt;bjschuma@netapp.com&gt;
Cc: stable@vger.kernel.org [&gt;=3.4]
</content>
</entry>
</feed>
