]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
userns: use union in {g,u}idmap struct
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 24 Oct 2017 22:04:40 +0000 (00:04 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 31 Oct 2017 22:22:58 +0000 (17:22 -0500)
commitaa4bf44dc851c6bdd4f7b61b5f2c56c84dfe2ff0
treeca3bdc2e66ad9585112fa7a08fd8ce9304f509b8
parente19b205be43d11bff638cad4487008c48d21c103
userns: use union in {g,u}idmap struct

- Add a struct containing two pointer to extents and wrap both the static extent
  array and the struct into a union. This is done in preparation for bumping the
  {g,u}idmap limits for user namespaces.
- Add brackets around anonymous union when using designated initializers to
  initialize members in order to please gcc <= 4.4.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/user_namespace.h
kernel/user.c