From: Eric W. Biederman Date: Fri, 28 Dec 2012 06:27:29 +0000 (-0800) Subject: userns: Allow any uid or gid mappings that don't overlap. X-Git-Tag: v3.9-rc1~85^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bd14b4fd72afd5df41e9fd59f356740f22fceba;p=pandora-kernel.git userns: Allow any uid or gid mappings that don't overlap. When I initially wrote the code for /proc//uid_map. I was lazy and avoided duplicate mappings by the simple expedient of ensuring the first number in a new extent was greater than any number in the previous extent. Unfortunately that precludes a number of valid mappings, and someone noticed and complained. So use a simple check to ensure that ranges in the mapping extents don't overlap. Acked-by: Serge Hallyn Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed