diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-02-19 06:59:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-02-19 06:59:49 +0000 |
commit | 6629a993d9be7a1da271af98ea18683a1eb7e6c9 (patch) | |
tree | 99b9d1dc0369a21b0bf07ab9c389a9c271895bb1 /sys/arch/i386 | |
parent | 3fe2efd570156025a7e867910e1c7e1e86dfd359 (diff) |
missing piece of APERTURE -- return EPERM in open if allowaperture is 0.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/mem.c b/sys/arch/i386/i386/mem.c index 7110434be0e..e1bf3248368 100644 --- a/sys/arch/i386/i386/mem.c +++ b/sys/arch/i386/i386/mem.c @@ -1,5 +1,5 @@ /* $NetBSD: mem.c,v 1.31 1996/05/03 19:42:19 christos Exp $ */ -/* $OpenBSD: mem.c,v 1.6 1998/02/18 18:00:16 millert Exp $ */ +/* $OpenBSD: mem.c,v 1.7 1998/02/19 06:59:48 millert Exp $ */ /* * Copyright (c) 1988 University of Utah. * Copyright (c) 1982, 1986, 1990, 1993 @@ -90,7 +90,7 @@ mmopen(dev, flag, mode, p) #endif #ifdef APERTURE case 4: - if (suser(p->p_ucred, &p->p_acflag) != 0) + if (suser(p->p_ucred, &p->p_acflag) != 0 || !allowaperture) return (EPERM); /* authorize only one simultaneous open() */ |