summaryrefslogtreecommitdiff
blob: dedfbe4188d8f1507a5f062cf867b83221ce43c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# Ensure that fchown() doesn't trigger spurious violations in the most
# basic of cases.
#
addwrite $PWD

# This should not trigger a violation.
rm -f file
touch file
fchown-0 ${SB_UID} ${SB_GID} file || exit 1