1#!/bin/sh 2 3# Check uid decoding. 4 5. "${srcdir=.}/init.sh" 6 7s="${uid_syscall_suffix-}" 8w="${uid_t_size-}" 9 10run_prog ./uid$s$w 11 12syscalls= 13for n in "getuid$s" "getxuid$s"; do 14 if $STRACE -e "$n" -h > /dev/null; then 15 syscalls="$n" 16 break 17 fi 18done 19test -n "$syscalls" || 20 fail_ "neither getuid$s nor getxuid$s is supported on this architecture" 21 22syscalls="$syscalls,setuid$s,getresuid$s,setreuid$s,setresuid$s,fchown$s,getgroups$s" 23run_strace -e trace="$syscalls" $args 24 25AWK=gawk 26match_awk "$LOG" "$srcdir"/uid.awk "$STRACE $args output mismatch" -v suffix="$s" 27 28exit 0 29