<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/sunrpc/auth_unix.c, branch linux-4.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-08-12T18:31:04Z</updated>
<entry>
<title>sunrpc: increase UNX_MAXNODENAME from 32 to __NEW_UTS_LEN bytes</title>
<updated>2015-08-12T18:31:04Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2015-08-03T11:44:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24a9a9610ce3ba36fd87c1d2f2c9106de6b7e832'/>
<id>urn:sha1:24a9a9610ce3ba36fd87c1d2f2c9106de6b7e832</id>
<content type='text'>
The current limit of 32 bytes artificially limits the name string that
we end up stuffing into NFSv4.x client ID blobs. If you have multiple
hosts with long hostnames that only differ near the end, then this can
cause NFSv4 client ID collisions.

Linux nodenames are actually limited to __NEW_UTS_LEN bytes (64), so use
that as the limit instead. Also, use XDR_QUADLEN to specify the slack
length, just for clarity and in case someone in the future changes this
to something not evenly divisible by 4.

Reported-by: Michael Skralivetsky &lt;michael.skralivetsky@primarydata.com&gt;
Signed-off-by: Jeff Layton &lt;jeff.layton@primarydata.com&gt;
Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: eliminate RPC_DEBUG</title>
<updated>2014-11-24T22:31:46Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2014-11-17T21:58:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f895b252d4edf66b2895fb5a7b17a638665f3e1f'/>
<id>urn:sha1:f895b252d4edf66b2895fb5a7b17a638665f3e1f</id>
<content type='text'>
It's always set to whatever CONFIG_SUNRPC_DEBUG is, so just use that.

Signed-off-by: Jeff Layton &lt;jlayton@primarydata.com&gt;
Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>SUNRPC refactor rpcauth_checkverf error returns</title>
<updated>2013-09-03T19:25:09Z</updated>
<author>
<name>Andy Adamson</name>
</author>
<published>2013-08-14T15:59:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35fa5f7b35ca2076d594b2670a32d66dd3ae9eec'/>
<id>urn:sha1:35fa5f7b35ca2076d594b2670a32d66dd3ae9eec</id>
<content type='text'>
Most of the time an error from the credops crvalidate function means the
server has sent us a garbage verifier. The gss_validate function is the
exception where there is an -EACCES case if the user GSS_context on the client
has expired.

Signed-off-by: Andy Adamson &lt;andros@netapp.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>SUNRPC: Replace clnt-&gt;cl_principal</title>
<updated>2013-08-30T13:19:36Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2013-08-26T23:23:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2190661039b3817b4cc1cbfea620b3f7dbe5cd8'/>
<id>urn:sha1:c2190661039b3817b4cc1cbfea620b3f7dbe5cd8</id>
<content type='text'>
The clnt-&gt;cl_principal is being used exclusively to store the service
target name for RPCSEC_GSS/krb5 callbacks. Replace it with something that
is stored only in the RPCSEC_GSS-specific code.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: Properly encode kuids and kgids in RPC_AUTH_UNIX credentials</title>
<updated>2013-02-13T14:15:24Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2013-02-02T10:45:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a570abbb966ee7de6c4357a58be11a558fa7099b'/>
<id>urn:sha1:a570abbb966ee7de6c4357a58be11a558fa7099b</id>
<content type='text'>
When writing kuids onto the wire first map them into the initial user
namespace.

When writing kgids onto the wire first map them into the initial user
namespace.

Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: Use gid_valid to test for gid != INVALID_GID</title>
<updated>2013-02-13T14:15:20Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2013-02-02T01:18:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e572fc739822ad779493b8a72bd27f2101fc3373'/>
<id>urn:sha1:e572fc739822ad779493b8a72bd27f2101fc3373</id>
<content type='text'>
In auth unix there are a couple of places INVALID_GID is used a
sentinel to mark the end of uc_gids array.  Use gid_valid
as a type safe way to verify we have not hit the end of
valid data in the array.

Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: Convert kuids and kgids to uids and gids for printing</title>
<updated>2013-02-13T14:15:19Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2013-02-02T01:10:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cdba321e291f0fbf5abda4d88340292b858e3d4d'/>
<id>urn:sha1:cdba321e291f0fbf5abda4d88340292b858e3d4d</id>
<content type='text'>
When printing kuids and kgids for debugging purpropses convert them
to ordinary integers so their values can be fed to the oridnary
print functions.

Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: Simplify auth_unix now that everything is a kgid_t</title>
<updated>2013-02-13T14:15:18Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2013-02-02T00:46:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9132adb0212c7ddf37d1c2a26c12f8fe7706827d'/>
<id>urn:sha1:9132adb0212c7ddf37d1c2a26c12f8fe7706827d</id>
<content type='text'>
In unx_create_cred directly assign gids from acred-&gt;group_info
to cred-&gt;uc_gids.

In unx_match directly compare uc_gids with group_info.

Now that both group_info and unx_cred gids are stored as kgids
this is valid and the extra layer of translation can be removed.

Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: Use uid_eq and gid_eq where appropriate</title>
<updated>2013-02-13T14:15:17Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2013-02-02T00:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b4d51b02a2e941beec6f02a6c7a32c5a28c5b43'/>
<id>urn:sha1:0b4d51b02a2e941beec6f02a6c7a32c5a28c5b43</id>
<content type='text'>
When comparing uids use uid_eq instead of ==.
When comparing gids use gid_eq instead of ==.

And unfortunate cost of type safety.

Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: Use kuid_t and kgid_t where appropriate</title>
<updated>2013-02-13T14:15:16Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2013-02-02T00:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7eaf040b720bc8c0ce5cd49151ca194ca2d56842'/>
<id>urn:sha1:7eaf040b720bc8c0ce5cd49151ca194ca2d56842</id>
<content type='text'>
Convert variables that store uids and gids to be of type
kuid_t and kgid_t instead of type uid_t and gid_t.

Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
</content>
</entry>
</feed>
