Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Mark kern.posix.semcnt as READONLY - we don't want ...



details:   https://anonhg.NetBSD.org/src/rev/6e7dc04c2df8
branches:  trunk
changeset: 811650:6e7dc04c2df8
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Nov 09 01:55:03 2015 +0000

description:
Mark kern.posix.semcnt as READONLY - we don't want users changing the
internal value!

diffstat:

 sys/kern/uipc_sem.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c32f8f314d85 -r 6e7dc04c2df8 sys/kern/uipc_sem.c
--- a/sys/kern/uipc_sem.c       Mon Nov 09 01:21:18 2015 +0000
+++ b/sys/kern/uipc_sem.c       Mon Nov 09 01:55:03 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_sem.c,v 1.43 2015/11/09 01:21:18 pgoyette Exp $   */
+/*     $NetBSD: uipc_sem.c,v 1.44 2015/11/09 01:55:03 pgoyette Exp $   */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_sem.c,v 1.43 2015/11/09 01:21:18 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_sem.c,v 1.44 2015/11/09 01:55:03 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -191,7 +191,7 @@
                        NULL, 0, &ksem_max, 0,
                        CTL_CREATE, CTL_EOL);
        sysctl_createv(&ksem_clog, 0, &rnode, NULL,
-                       CTLFLAG_PERMANENT | CTLFLAG_READWRITE,
+                       CTLFLAG_PERMANENT | CTLFLAG_READONLY,
                        CTLTYPE_INT, "semcnt",
                        SYSCTL_DESCR("Current number of semaphores"),
                        NULL, 0, &nsems, 0,



Home | Main Index | Thread Index | Old Index