security: select correct default LSM_MMAP_MIN_ADDR on arm on arm64
authorColin Cross <ccross@android.com>
Tue, 4 Feb 2014 02:15:32 +0000 (02:15 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Feb 2014 14:59:14 +0000 (14:59 +0000)
commit530b099dfe8499d639e7fbcad28c4199e2a720c7
tree84270102fb52b6db443ca1912289421958c0f910
parent6290b53de025dd08a79257ee84173ef7b6d926f7
security: select correct default LSM_MMAP_MIN_ADDR on arm on arm64

Binaries compiled for arm may run on arm64 if CONFIG_COMPAT is
selected.  Set LSM_MMAP_MIN_ADDR to 32768 if ARM64 && COMPAT to
prevent selinux failures launching 32-bit static executables that
are mapped at 0x8000.

Signed-off-by: Colin Cross <ccross@android.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Eric Paris <eparis@redhat.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
security/Kconfig