1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. 3 * Authors: Jinhui huang <huangjh.jy@cn.fujitsu.com> 4 * Xiao Yang <yangx.jy@cn.fujitsu.com> 5 */ 6 check_execveat(void)7void check_execveat(void) 8 { 9 int ret; 10 11 ret = execveat(-1, "", NULL, NULL, AT_EMPTY_PATH); 12 if (ret == -1 && errno == EINVAL) 13 tst_brk(TCONF, "execveat() not supported"); 14 } 15