File: test-all-syscalls-parallel.sh

package info (click to toggle)
trinity 1.9%2Bgit20250902.294c465-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,104 kB
  • sloc: ansic: 33,473; sh: 574; makefile: 164
file content (19 lines) | stat: -rwxr-xr-x 348 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

. scripts/paths.sh
. scripts/privs.sh
. scripts/taint.sh

chmod 755 $TRINITY_TMP
cd $TRINITY_TMP


while [ 1 ];
do
  for syscall in $($TRINITY_PATH/trinity -L | grep entrypoint | grep -v AVOID | awk '{ print $3 }' | sort -u)
  do
	MALLOC_CHECK_=2 $TRINITY_PATH/trinity -q -c $syscall -D $DROPPRIVS &
  done
  wait
  check_tainted
done