aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-pseudo_disable-fork.sh
blob: 13a42a42b7f001f6c3bd8e500d269868e49f30cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Verify normal operation...
uid=`id -u`
gid=`id -g`
if [ $uid -ne 0 -o $gid -ne 0 ]; then
    exit 1
fi

export PSEUDO_DISABLED=1
# Verify we dropped OUT of pseudo control
uid=`id -u`
gid=`id -g`
if [ $uid -eq 0 -o $gid -eq 0 ]; then
    exit 1
fi

exit 0