15f9996aaSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 25f9996aaSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 35f9996aaSopenharmony_ci# you may not use this file except in compliance with the License. 45f9996aaSopenharmony_ci# You may obtain a copy of the License at 55f9996aaSopenharmony_ci# 65f9996aaSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 75f9996aaSopenharmony_ci# 85f9996aaSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 95f9996aaSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 105f9996aaSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115f9996aaSopenharmony_ci# See the License for the specific language governing permissions and 125f9996aaSopenharmony_ci# limitations under the License. 135f9996aaSopenharmony_ci 145f9996aaSopenharmony_ci@returnValue 155f9996aaSopenharmony_ciTRAP 165f9996aaSopenharmony_ci 175f9996aaSopenharmony_ci@headFiles 185f9996aaSopenharmony_ci"seccomp_policy_constants.h" 195f9996aaSopenharmony_ci 205f9996aaSopenharmony_ci@mode 215f9996aaSopenharmony_ciONLY_CHECK_ARGS 225f9996aaSopenharmony_ci 235f9996aaSopenharmony_ci@allowListWithArgs 245f9996aaSopenharmony_cisetresuid: if arg0 >= APP_UID_START && arg1 >= APP_UID_START && arg2 >= APP_UID_START; return ALLOW; else return TRAP;arm64 255f9996aaSopenharmony_cisetresgid: if arg0 >= APP_UID_START && arg1 >= APP_UID_START && arg2 >= APP_UID_START; return ALLOW; else return TRAP;arm64 265f9996aaSopenharmony_cisetresuid: if arg0 >= APP_UID_START && arg1 >= APP_UID_START && arg2 >= APP_UID_START; return ALLOW; else return TRAP;riscv64 275f9996aaSopenharmony_cisetresgid: if arg0 >= APP_UID_START && arg1 >= APP_UID_START && arg2 >= APP_UID_START; return ALLOW; else return TRAP;riscv64 285f9996aaSopenharmony_cisetresuid32: if arg0 >= APP_UID_START && arg1 >= APP_UID_START && arg2 >= APP_UID_START; return ALLOW; else return TRAP;arm 295f9996aaSopenharmony_cisetresgid32: if arg0 >= APP_UID_START && arg1 >= APP_UID_START && arg2 >= APP_UID_START; return ALLOW; else return TRAP;arm 305f9996aaSopenharmony_cisetuid: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;all 315f9996aaSopenharmony_cisetgid: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;all 325f9996aaSopenharmony_cisetuid32: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;arm 335f9996aaSopenharmony_cisetgid32: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;arm 345f9996aaSopenharmony_cisetreuid: if arg0 >= APP_UID_START && arg1 >= APP_UID_START; return ALLOW; else return TRAP;all 355f9996aaSopenharmony_cisetregid: if arg0 >= APP_UID_START && arg1 >= APP_UID_START; return ALLOW; else return TRAP;all 365f9996aaSopenharmony_cisetreuid32: if arg0 >= APP_UID_START && arg1 >= APP_UID_START; return ALLOW; else return TRAP;arm 375f9996aaSopenharmony_cisetregid32: if arg0 >= APP_UID_START && arg1 >= APP_UID_START; return ALLOW; else return TRAP;arm 385f9996aaSopenharmony_cisetfsuid: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;all 395f9996aaSopenharmony_cisetfsgid: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;all 405f9996aaSopenharmony_cisetfsuid32: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;arm 415f9996aaSopenharmony_cisetfsgid32: if arg0 >= APP_UID_START; return ALLOW; else return TRAP;arm 42