svn commit: r357885 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Thu Feb 13 22:16:03 UTC 2020


Author: mjg
Date: Thu Feb 13 22:16:02 2020
New Revision: 357885
URL: https://svnweb.freebsd.org/changeset/base/357885

Log:
  Annotate suser_enabled as __read_mostly
  
  It is read a lot in priv code.

Modified:
  head/sys/kern/kern_priv.c

Modified: head/sys/kern/kern_priv.c
==============================================================================
--- head/sys/kern/kern_priv.c	Thu Feb 13 21:10:17 2020	(r357884)
+++ head/sys/kern/kern_priv.c	Thu Feb 13 22:16:02 2020	(r357885)
@@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$");
  * userland programs, and should not be done without careful consideration of
  * the consequences.
  */
-static int	suser_enabled = 1;
+static int __read_mostly 	suser_enabled = 1;
 SYSCTL_INT(_security_bsd, OID_AUTO, suser_enabled, CTLFLAG_RWTUN,
     &suser_enabled, 0, "processes with uid 0 have privilege");
 


More information about the svn-src-all mailing list