]> git.karo-electronics.de Git - linux-beck.git/commit
userns: net: Call key_alloc with GLOBAL_ROOT_UID, GLOBAL_ROOT_GID instead of 0, 0
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 25 May 2012 22:37:54 +0000 (16:37 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 14 Sep 2012 01:28:04 +0000 (18:28 -0700)
commitc6089735e7243a10faad676680c6e18d50959f74
treeb2a19e10a0a126298aaa7a145e1ee327e3e2d85e
parent9a56c2db49e7349c7963f0ce66c1ef578d44ebd3
userns: net: Call key_alloc with GLOBAL_ROOT_UID, GLOBAL_ROOT_GID instead of 0, 0

In net/dns_resolver/dns_key.c and net/rxrpc/ar-key.c make them
work with user namespaces enabled where key_alloc takes kuids and kgids.
Pass GLOBAL_ROOT_UID and GLOBAL_ROOT_GID instead of bare 0's.

Cc: Sage Weil <sage@inktank.com>
Cc: ceph-devel@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Cc: David Miller <davem@davemloft.net>
Cc: linux-afs@lists.infradead.org
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
init/Kconfig
net/dns_resolver/dns_key.c
net/rxrpc/ar-key.c