syzkaller/pkg
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
..
ast sys/fuchsia: prune unused structs in syscall description generated by fidlgen 2018-09-11 13:01:53 +02:00
bisect pkg/mgrconfig: move from syz-manager/mgrconfig 2018-08-02 16:57:32 +02:00
build pkg/build: copy image to output dir 2018-09-17 10:53:06 +02:00
compiler sys/fuchsia: prune unused structs in syscall description generated by fidlgen 2018-09-11 13:01:53 +02:00
config .gometalinter.json: enable gofmt 2018-07-31 12:16:54 +02:00
cover all: fix gometalinter warnings 2018-03-08 18:48:26 +01:00
csource RFC: android: Add support for untrusted_app sandboxing (#697) 2018-09-17 11:33:11 +02:00
db gometalinter: clean up some errcheck warnings 2018-08-02 16:57:31 +02:00
email gometalinter: clean up vetshadow 2018-07-31 20:38:33 +02:00
gce .gometalinter.json: enable gofmt 2018-07-31 12:16:54 +02:00
gcs all: fix gometalinter warnings 2018-03-08 18:48:26 +01:00
hash pkg/hash: allow to hash multiple byte slices 2017-07-21 10:06:46 +02:00
host RFC: android: Add support for untrusted_app sandboxing (#697) 2018-09-17 11:33:11 +02:00
ifuzz gometalinter: clean up vetshadow 2018-07-31 20:38:33 +02:00
instance syz-ci: use gmake instead of make on openbsd 2018-09-13 12:13:54 +02:00
ipc RFC: android: Add support for untrusted_app sandboxing (#697) 2018-09-17 11:33:11 +02:00
kd pkg/kd: add KD protocol decoder 2017-09-28 16:53:58 +02:00
log gometalinter: enable package comment checking 2018-05-03 13:53:01 +02:00
mgrconfig RFC: android: Add support for untrusted_app sandboxing (#697) 2018-09-17 11:33:11 +02:00
osutil pkg/runtest: fixes for fuchsia 2018-09-06 10:56:09 +02:00
report pkg/report: improve KMSAN report parsing 2018-09-13 11:21:29 +02:00
repro pkg/mgrconfig: move from syz-manager/mgrconfig 2018-08-02 16:57:32 +02:00
rpctype tools/syz-runtest: add tool for program unit testing 2018-08-03 21:08:02 +02:00
runtest RFC: android: Add support for untrusted_app sandboxing (#697) 2018-09-17 11:33:11 +02:00
serializer pkg/serializer: refactor 2018-08-02 16:57:31 +02:00
signal prog: add stronger fallback signal 2018-06-29 20:34:43 +02:00
symbolizer pkg/symbolizer: skip nm tests on non-linux 2018-09-17 10:53:13 +02:00
vcs pkg/vcs: add openbsd support 2018-09-11 14:47:38 +02:00