OSDN Git Service

Zygote: remount /system nosuid/nodev
authorNick Kralevich <nnk@google.com>
Wed, 27 Feb 2013 23:39:41 +0000 (15:39 -0800)
committerNick Kralevich <nnk@google.com>
Thu, 28 Feb 2013 21:14:48 +0000 (13:14 -0800)
commit9907ca3cb8982063a846426ad3bdf3f90e3b87c2
tree8ce9773345921d01b417db985961a82d49ab4ff1
parent64d4c47f1869c5f655f9a1bbdc57ad977b76f817
Zygote: remount /system nosuid/nodev

Android no longer has any setuid / setgid programs accessible
to zygote. Make sure /system is remounted nosuid and nodev
for zygote spawned processes.

We use mount namespaces to make sure these changes are
only visible to zygote spawned processes. We continue to need
/system mounted with suid to support /system/bin/run-as.
See also: b/8253345

Change-Id: Ib58a8d56b42e4b022b6b4e51932f0a415298c920
vm/Init.cpp