Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2006 14:29:58 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 95675 for review
Message-ID:  <200604201429.k3KETwOg051733@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95675

Change 95675 by millert@millert_g5tower on 2006/04/20 14:29:05

	Add security.mac.sebsd.policyvers sysctl

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd_sysctl.c#7 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd_sysctl.c#7 (text+ko) ====

@@ -54,6 +54,8 @@
 #include <sedarwin/sebsd_syscalls.h>
 #include <sedarwin/avc/avc.h>
 
+extern unsigned int policydb_loaded_version;
+
 #if 0
 /*
  * Sysctl handler for security.mac.sebsd.sids
@@ -358,6 +360,8 @@
 SYSCTL_PROC(_security_mac_sebsd, OID_AUTO, enforcing, CTLTYPE_INT |
     CTLFLAG_RW, NULL, 0, sysctl_sebsd_enforcing, "I",
     "SEBSD avc enforcement");
+SYSCTL_UINT(_security_mac_sebsd, OID_AUTO, policyvers, CTLFLAG_RD,
+    &policydb_loaded_version, 0, " SEBSD loaded policy version");
 
 void
 sebsd_register_sysctls()
@@ -366,4 +370,5 @@
 	sysctl_register_oid(&sysctl__security_mac_sebsd_verbose);
 	sysctl_register_oid(&sysctl__security_mac_sebsd_auditing);
 	sysctl_register_oid(&sysctl__security_mac_sebsd_enforcing);
+	sysctl_register_oid(&sysctl__security_mac_sebsd_policyvers);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604201429.k3KETwOg051733>