diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-10-03 12:06:44 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-10-03 12:06:44 +0000 |
commit | da6a1f24ec0b198186a41fdb59e7a9812883e622 (patch) | |
tree | e4e6a93b84f5b89b88444d3744d4b921130026bd /regress/sys/kern | |
parent | 4c171ff00772897fc474d7a8d037d4cfe3980ae0 (diff) |
The setuid tests needs an obj directory that allows to run programs
with set user id. Skip the test if the current filesystem has set
the nosuid mount option.
OK otto@
Diffstat (limited to 'regress/sys/kern')
-rw-r--r-- | regress/sys/kern/setuid/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/regress/sys/kern/setuid/Makefile b/regress/sys/kern/setuid/Makefile index 0e15eca9fc7..2124c1aca8f 100644 --- a/regress/sys/kern/setuid/Makefile +++ b/regress/sys/kern/setuid/Makefile @@ -1,4 +1,14 @@ -# $OpenBSD: Makefile,v 1.1 2014/08/27 07:36:14 blambert Exp $ +# $OpenBSD: Makefile,v 1.2 2016/10/03 12:06:43 bluhm Exp $ + +MOUNT_NOSUID != mount | grep ^$$(df -P . | tail -1 | awk '{ print $$1 }') | \ + grep nosuid || true + +.if ! empty (MOUNT_NOSUID) +regress: + echo '${MOUNT_NOSUID}' + echo object directory is mounted nosuid, test needs set user id + echo SKIPPED +.endif CFLAGS += -Wall -Wformat -pedantic |