syzkaller/pkg/host
Zach Riggle 0eca949a6c RFC: android: Add support for untrusted_app sandboxing (#697)
executor: add support for android_untrusted_app sandbox

This adds a new sandbox type, 'android_untrusted_app', which restricts
syz-executor to the privileges which are available to third-party applications,
e.g. those installed from the Google Play store.

In particular, this uses the UID space reserved for applications (instead of
the 'setuid' sandbox, which uses the traditional 'nobody' user / 65534)
as well as a set of groups which the Android-specific kernels are aware of,
and finally ensures that the SELinux context is set appropriately.

Dependencies on libselinux are avoided by manually implementing the few
functions that are needed to change the context of the current process,
and arbitrary files.  The underlying mechanisms are relatively simple.

Fixes google/syzkaller#643

Test: make presubmit
Bug: http://b/112900774
2018-09-17 11:33:11 +02:00
..
host_akaros.go pkg/host: rework host feature detection/setup 2018-06-12 14:53:22 +02:00
host_darwin.go pkg/host: rework host feature detection/setup 2018-06-12 14:53:22 +02:00
host_freebsd.go pkg/host: enable coverage on freebsd, disable on netbsd 2018-08-25 08:59:51 -07:00
host_fuchsia.go pkg/host: rework host feature detection/setup 2018-06-12 14:53:22 +02:00
host_linux_test.go pkg/host: explain why syscalls are disabled 2018-04-06 18:47:56 +02:00
host_linux.go RFC: android: Add support for untrusted_app sandboxing (#697) 2018-09-17 11:33:11 +02:00
host_netbsd.go pkg/host: enable coverage on freebsd, disable on netbsd 2018-08-25 08:59:51 -07:00
host_openbsd.go Add mandatory OpenBSD bits (#689) 2018-08-28 10:07:26 -07:00
host_test.go pkg/host: disable for akaros 2018-07-06 20:18:05 +02:00
host_windows.go pkg/host: rework host feature detection/setup 2018-06-12 14:53:22 +02:00
host.go RFC: android: Add support for untrusted_app sandboxing (#697) 2018-09-17 11:33:11 +02:00