diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-08 21:25:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-08 21:25:38 +0000 |
commit | fdc9b4627c0d02a7505843e751f02dce8a81714e (patch) | |
tree | 93a3190c7596819a201c910b8f1869585f6a8483 /sys/kern/kern_sysctl.c | |
parent | 57f77346d656c8b71deb467ebebd5de5a9bc134b (diff) |
add kern.nosuidcoredump to lock things out even more
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 5035cd21a18..241fe031c66 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.23 1997/11/06 15:59:49 kstailey Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.24 1997/12/08 21:25:37 deraadt Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -210,7 +210,7 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) int error, level, inthostid; extern char ostype[], osrelease[], osversion[], version[]; extern int somaxconn, sominconn; - extern int usermount; + extern int usermount, nosuidcoredump; /* all sysctl names at this level are terminal */ if (namelen != 1 && !(name[0] == KERN_PROC || name[0] == KERN_PROF)) @@ -305,6 +305,8 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) case KERN_RND: return (sysctl_rdstruct(oldp, oldlenp, newp, &rndstats, sizeof(rndstats))); + case KERN_NOSUIDCOREDUMP: + return (sysctl_int(oldp, oldlenp, newp, newlen, &nosuidcoredump)); default: return (EOPNOTSUPP); } |