1# Copyright (c) 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14# For now, it supports architechture of ['arm', 'arm64']. 15 16@returnValue 17TRAP 18 19@allowList 20getcwd;all 21eventfd2;all 22epoll_create1;all 23epoll_ctl;all 24dup;all 25dup3;arm64 26fcntl;arm64 27ioctl;all 28mkdirat;arm64 29unlinkat;arm64 30statfs;arm64 31ftruncate;arm64 32faccessat;arm64 33fchmodat;arm64 34openat;all 35close;all 36pipe2;all 37getdents64;all 38lseek;arm64 39read;all 40write;all 41readv;all 42writev;all 43pread64;all 44pselect6;arm64 45ppoll;all 46readlinkat;all 47newfstatat;arm64 48fstat;arm64 49capget;all 50capset;all 51exit;all 52exit_group;all 53set_tid_address;all 54futex;all 55set_robust_list;arm64 56nanosleep;all 57setitimer;all 58clock_gettime;arm64 59clock_nanosleep;all 60ptrace;all 61sched_setscheduler;all 62sched_getaffinity;all 63restart_syscall;all 64tkill;arm64 65tgkill;all 66sigaltstack;all 67rt_sigsuspend;arm64 68rt_sigaction;all 69rt_sigprocmask;all 70rt_sigreturn;all 71setuid;arm64 72getpgid;all 73setsid;all 74uname;all 75getrlimit;arm64 76getrusage;arm64 77umask;all 78prctl;all 79gettimeofday;arm64 80mincore;all 81getpid;all 82getppid;all 83getuid;arm64 84geteuid;arm64 85getgid;arm64 86getegid;arm64 87gettid;all 88sysinfo;all 89socket;all 90socketpair;all 91bind;all 92connect;all 93getsockname;all 94getpeername;all 95sendto;all 96recvfrom;all 97setsockopt;all 98getsockopt;all 99sendmsg;all 100recvmsg;all 101brk;all 102munmap;all 103mremap;all 104clone;all 105execve;all 106mmap;arm64 107mprotect;all 108madvise;all 109rt_tgsigqueueinfo;all 110wait4;all 111prlimit64;all 112sched_setattr;all 113sched_getattr;all 114getrandom;all 115membarrier;all 116fork;arm 117open;arm 118access;arm 119mkdir;arm 120pipe;arm 121dup2;arm 122readlink;arm 123sigreturn;arm 124_llseek;arm 125poll;arm 126mmap2;arm 127fstat64;arm 128getuid32;arm 129getgid32;arm 130geteuid32;arm 131getegid32;arm 132setuid32;arm 133fcntl64;arm 134statfs64;arm 135fstatat64;arm 136statx;arm 137clock_gettime64;arm 138set_tls;arm 139setpriority;all 140sched_yield;all 141_newselect;arm 142fsync;all 143msync;all 144process_vm_readv;all 145shutdown;all 146fgetxattr;all 147epoll_pwait;all 148timerfd_create;all 149timerfd_settime;all