diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2011-11-22 04:40:54 +0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-11-19 17:59:23 +0400 |
commit | 3cdf5b45ffbac294bcdfac0393df72f7687c01e8 (patch) | |
tree | 8f6d5339dc7fc40107aecd11612617dbff63134e /firmware/bnx2 | |
parent | ae11e0f18482bfe0cd83b9b61434ea7e0bd94e25 (diff) | |
download | linux-3cdf5b45ffbac294bcdfac0393df72f7687c01e8.tar.xz |
userns: Ignore suid and sgid on binaries if the uid or gid can not be mapped
When performing an exec where the binary lives in one user namespace and
the execing process lives in another usre namespace there is the possibility
that the target uids can not be represented.
Instead of failing the exec simply ignore the suid/sgid bits and run
the binary with lower privileges. We already do this in the case
of MNT_NOSUID so this should be a well tested code path.
As the user and group are not changed this should not introduce any
security issues.
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'firmware/bnx2')
0 files changed, 0 insertions, 0 deletions