userns: Add negative depends on entries to avoid building code that is userns unsafe
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 21 Apr 2012 11:09:01 +0000 (04:09 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 15 May 2012 21:59:25 +0000 (14:59 -0700)
commite1c972b681bf118fcedb9fe2ed7a73de983aa5ef
treef70977f288b70620ebf3ef339c40b79c09095a36
parent54ba47edac90091d42e5f97516cad56953576a5a
userns: Add negative depends on entries to avoid building code that is userns unsafe

Add a new internal Kconfig option UIDGID_CONVERTED that is true when the selected
Kconfig options have been converted to be user namespace safe, and guard
USER_NS and guard the UIDGID_STRICT_TYPE_CHECK options with it.

This keeps innocent kernel users from having the choice to enable
the user namespace in the cases where it is known not to work.

Most of the rest of the conversions are simple and straight forward but
their sheer number means it is good not to count on having them all done
and reviwed before thinking of merging this code.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
init/Kconfig