blob: 78ecaf58a9f0162920c2efd6e08b2926b8d74eeb [file] [log] [blame]
Harish Mahendrakar350b3592018-12-07 17:03:55 -08001# Copyright (C) 2019 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15futex: 1
16# ioctl calls are filtered via the selinux policy.
17ioctl: 1
18sched_yield: 1
19close: 1
20dup: 1
21ppoll: 1
22mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
23mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
24getuid: 1
25getrlimit: 1
26fstat: 1
27newfstatat: 1
28fstatfs: 1
Joel Fernandesd6483992018-12-22 18:11:34 -080029memfd_create: 1
Joel Fernandes3c493472018-12-22 18:11:34 -080030ftruncate: 1
Joel Fernandesd6483992018-12-22 18:11:34 -080031ftruncate64: 1
Harish Mahendrakar350b3592018-12-07 17:03:55 -080032
33# mremap: Ensure |flags| are (MREMAP_MAYMOVE | MREMAP_FIXED) TODO: Once minijail
34# parser support for '<' is in this needs to be modified to also prevent
35# |old_address| and |new_address| from touching the exception vector page, which
36# on ARM is statically loaded at 0xffff 0000. See
37# http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html
38# for more details.
39mremap: arg3 == 3
40munmap: 1
41prctl: 1
42writev: 1
43sigaltstack: 1
44clone: 1
45exit: 1
46lseek: 1
47rt_sigprocmask: 1
48openat: 1
49write: 1
50nanosleep: 1
51setpriority: 1
52set_tid_address: 1
53getdents64: 1
54readlinkat: 1
55read: 1
56pread64: 1
57gettimeofday: 1
58faccessat: 1
59exit_group: 1
60restart_syscall: 1
61rt_sigreturn: 1
62getrandom: 1
63madvise: 1
64