diff options
| author | 2015-08-23 21:30:04 +0000 | |
|---|---|---|
| committer | 2015-08-23 21:30:04 +0000 | |
| commit | 246045a3a624d71a3088a5dd14cd305a9047cb15 (patch) | |
| tree | a4feeba18ec9e165c34cbd099b80e38beab8e10d /sys/kern/kern_tame.c | |
| parent | Use kbind for lazy binding GOT/PLT updates on amd64 and sparc64; others (diff) | |
| download | wireguard-openbsd-246045a3a624d71a3088a5dd14cd305a9047cb15.tar.xz wireguard-openbsd-246045a3a624d71a3088a5dd14cd305a9047cb15.zip | |
fix /tmp handling of unlink(); from Caspar Schutijser
Diffstat (limited to 'sys/kern/kern_tame.c')
| -rw-r--r-- | sys/kern/kern_tame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c index 6e93d645fcb..cfe77fc4fff 100644 --- a/sys/kern/kern_tame.c +++ b/sys/kern/kern_tame.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_tame.c,v 1.25 2015/08/23 19:32:20 deraadt Exp $ */ +/* $OpenBSD: kern_tame.c,v 1.26 2015/08/23 21:30:04 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -423,7 +423,7 @@ tame_namei(struct proc *p, char *origpath) */ if ((p->p_p->ps_tame & _TM_TMPPATH) && (p->p_tame_syscall == SYS_unlink) && - strncmp(path, "/tmp/", sizeof("/tmp") - 1) == 0) { + strncmp(path, "/tmp/", sizeof("/tmp/") - 1) == 0) { return (0); } |
