Declare security and security.bsd sysctl hierarchies in sysctl.h along
with other commonly used sysctl name spaces, rather than declaring them all over the place. MFC after: 1 month Sponsored by: nCircle Network Security, Inc.
This commit is contained in:
parent
99f3b482da
commit
5702e0965e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162383
@ -252,8 +252,6 @@ SYSCTL_INT(_kern_hwpmc, OID_AUTO, mtxpoolsize, CTLFLAG_TUN|CTLFLAG_RD,
|
||||
* per-process measurements. This feature is turned off by default.
|
||||
*/
|
||||
|
||||
SYSCTL_DECL(_security_bsd);
|
||||
|
||||
static int pmc_unprivileged_syspmcs = 0;
|
||||
TUNABLE_INT("security.bsd.unprivileged_syspmcs", &pmc_unprivileged_syspmcs);
|
||||
SYSCTL_INT(_security_bsd, OID_AUTO, unprivileged_syspmcs, CTLFLAG_RW,
|
||||
|
@ -37,7 +37,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
MALLOC_DEFINE(M_PRISON, "prison", "Prison structures");
|
||||
|
||||
SYSCTL_DECL(_security);
|
||||
SYSCTL_NODE(_security, OID_AUTO, jail, CTLFLAG_RW, 0,
|
||||
"Jail rules");
|
||||
|
||||
|
@ -70,9 +70,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
static MALLOC_DEFINE(M_CRED, "cred", "credentials");
|
||||
|
||||
SYSCTL_DECL(_security);
|
||||
SYSCTL_NODE(_security, OID_AUTO, bsd, CTLFLAG_RW, 0,
|
||||
"BSD security policy");
|
||||
SYSCTL_NODE(_security, OID_AUTO, bsd, CTLFLAG_RW, 0, "BSD security policy");
|
||||
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct getpid_args {
|
||||
|
@ -856,8 +856,6 @@ msgbufinit(void *ptr, int size)
|
||||
oldp = msgbufp;
|
||||
}
|
||||
|
||||
SYSCTL_DECL(_security_bsd);
|
||||
|
||||
static int unprivileged_read_msgbuf = 1;
|
||||
SYSCTL_INT(_security_bsd, OID_AUTO, unprivileged_read_msgbuf,
|
||||
CTLFLAG_RW, &unprivileged_read_msgbuf, 0,
|
||||
|
@ -1367,8 +1367,6 @@ link(td, uap)
|
||||
return (error);
|
||||
}
|
||||
|
||||
SYSCTL_DECL(_security_bsd);
|
||||
|
||||
static int hardlink_check_uid = 0;
|
||||
SYSCTL_INT(_security_bsd, OID_AUTO, hardlink_check_uid, CTLFLAG_RW,
|
||||
&hardlink_check_uid, 0,
|
||||
|
@ -1367,8 +1367,6 @@ link(td, uap)
|
||||
return (error);
|
||||
}
|
||||
|
||||
SYSCTL_DECL(_security_bsd);
|
||||
|
||||
static int hardlink_check_uid = 0;
|
||||
SYSCTL_INT(_security_bsd, OID_AUTO, hardlink_check_uid, CTLFLAG_RW,
|
||||
&hardlink_check_uid, 0,
|
||||
|
@ -40,7 +40,6 @@
|
||||
* MAC Framework sysctl namespace.
|
||||
*/
|
||||
#ifdef SYSCTL_DECL
|
||||
SYSCTL_DECL(_security);
|
||||
SYSCTL_DECL(_security_mac);
|
||||
#ifdef MAC_DEBUG
|
||||
SYSCTL_DECL(_security_mac_debug);
|
||||
|
@ -628,6 +628,8 @@ SYSCTL_DECL(_machdep);
|
||||
SYSCTL_DECL(_user);
|
||||
SYSCTL_DECL(_compat);
|
||||
SYSCTL_DECL(_regression);
|
||||
SYSCTL_DECL(_security);
|
||||
SYSCTL_DECL(_security_bsd);
|
||||
|
||||
extern char machine[];
|
||||
extern char osrelease[];
|
||||
|
@ -58,8 +58,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <ufs/ufs/ufsmount.h>
|
||||
#include <ufs/ufs/ufs_extern.h>
|
||||
|
||||
SYSCTL_DECL(_security_bsd);
|
||||
|
||||
static int unprivileged_get_quota = 0;
|
||||
SYSCTL_INT(_security_bsd, OID_AUTO, unprivileged_get_quota, CTLFLAG_RW,
|
||||
&unprivileged_get_quota, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user