]> git.ipfire.org Git - thirdparty/shadow.git/commit
userns: add argument sanity checking userns.2
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 21 Jun 2013 16:47:36 +0000 (11:47 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 21 Jun 2013 17:21:12 +0000 (12:21 -0500)
commitdf3c8c1f7f47ceff607595067458f1d8e53eaab8
tree1c07fef40ccd665484ce2bdf325d9b41b1c3cb7f
parentca0f3528845abbd3ea7611086a260ae64f831954
userns: add argument sanity checking

In find_new_sub_{u,g}ids, check for min, count and max values.

In idmapping.c:get_map_ranges(), make sure that the value passed
in for ranges did not overflow.  Couldn't happen with the current
code, but this is a sanity check for any future potential mis-uses.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
libmisc/find_new_sub_gids.c
libmisc/find_new_sub_uids.c
libmisc/idmapping.c