blob: 1bee1b5478d11d6e580a75b93ac9b77c0f66bd22 [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
29
30# mremap: Ensure |flags| are (MREMAP_MAYMOVE | MREMAP_FIXED) TODO: Once minijail
31# parser support for '<' is in this needs to be modified to also prevent
32# |old_address| and |new_address| from touching the exception vector page, which
33# on ARM is statically loaded at 0xffff 0000. See
34# http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html
35# for more details.
36mremap: arg3 == 3
37munmap: 1
38prctl: 1
39writev: 1
40sigaltstack: 1
41clone: 1
42exit: 1
43lseek: 1
44rt_sigprocmask: 1
45openat: 1
46write: 1
47nanosleep: 1
48setpriority: 1
49set_tid_address: 1
50getdents64: 1
51readlinkat: 1
52read: 1
53pread64: 1
54gettimeofday: 1
55faccessat: 1
56exit_group: 1
57restart_syscall: 1
58rt_sigreturn: 1
59getrandom: 1
60madvise: 1
61