trunksd-seccomp-mips.policy revision 5b9043530a04124c6f9a21fe65f88f6f7348abc0
1#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# TODO: This policy needs to be verified.
18
19gettid: 1
20getuid: 1
21geteuid: 1
22getgid: 1
23getegid: 1
24getresuid: 1
25getresgid: 1
26
27clock_getres: 1
28clock_gettime: 1
29gettimeofday: 1
30
31epoll_create1: 1
32epoll_pwait: 1
33epoll_ctl: 1
34
35openat: 1
36read: 1
37write: 1
38writev: 1
39close: 1
40fstat64: 1
41_llseek: 1
42lseek: 1
43fcntl64: 1
44readlinkat: 1
45faccessat: 1
46pipe2: 1
47socket: 1
48connect: 1
49
50futex: 1
51
52restart_syscall: 1
53exit: 1
54exit_group: 1
55rt_sigreturn: 1
56sigaltstack: 1
57personality: 1
58
59brk: 1
60mmap2: 1
61munmap: 1
62madvise: 1
63
64# Allow thread creation.
65mprotect: 1
66clone: 1
67set_robust_list: 1
68# This is attempted but apparently not necessary; return EPERM.
69prctl: return 1
70gettid: 1
71set_tid_address: 1
72
73rt_sigprocmask: 1
74signalfd4: 1
75ioctl: 1
76getpriority: 1
77exit: 1
78exit_group: 1
79chdir: 1
80
81