mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add kern_giant_ucred to instrument Giant around ucred related operations
such a getgid(), setgid(), etc...
This commit is contained in:
parent
90a5520170
commit
735da6de88
3 changed files with 5 additions and 0 deletions
|
|
@ -709,8 +709,10 @@ SYSCTL_INT(_kern_giant, OID_AUTO, all, CTLFLAG_RW, &kern_giant_all, 0, "");
|
|||
|
||||
int kern_giant_proc = 1; /* Giant around PROC locks */
|
||||
int kern_giant_file = 1; /* Giant around struct file & filedesc */
|
||||
int kern_giant_ucred = 1; /* Giant around ucred */
|
||||
SYSCTL_INT(_kern_giant, OID_AUTO, proc, CTLFLAG_RW, &kern_giant_proc, 0, "");
|
||||
SYSCTL_INT(_kern_giant, OID_AUTO, file, CTLFLAG_RW, &kern_giant_file, 0, "");
|
||||
SYSCTL_INT(_kern_giant, OID_AUTO, ucred, CTLFLAG_RW, &kern_giant_ucred, 0, "");
|
||||
|
||||
int
|
||||
mtx_lock_giant(int sysctlvar)
|
||||
|
|
|
|||
|
|
@ -709,8 +709,10 @@ SYSCTL_INT(_kern_giant, OID_AUTO, all, CTLFLAG_RW, &kern_giant_all, 0, "");
|
|||
|
||||
int kern_giant_proc = 1; /* Giant around PROC locks */
|
||||
int kern_giant_file = 1; /* Giant around struct file & filedesc */
|
||||
int kern_giant_ucred = 1; /* Giant around ucred */
|
||||
SYSCTL_INT(_kern_giant, OID_AUTO, proc, CTLFLAG_RW, &kern_giant_proc, 0, "");
|
||||
SYSCTL_INT(_kern_giant, OID_AUTO, file, CTLFLAG_RW, &kern_giant_file, 0, "");
|
||||
SYSCTL_INT(_kern_giant, OID_AUTO, ucred, CTLFLAG_RW, &kern_giant_ucred, 0, "");
|
||||
|
||||
int
|
||||
mtx_lock_giant(int sysctlvar)
|
||||
|
|
|
|||
|
|
@ -286,6 +286,7 @@ extern struct mtx Giant;
|
|||
*/
|
||||
extern int kern_giant_proc;
|
||||
extern int kern_giant_file;
|
||||
extern int kern_giant_ucred;
|
||||
|
||||
/*
|
||||
* Giant lock manipulation and clean exit macros.
|
||||
|
|
|
|||
Loading…
Reference in a new issue