Page MenuHomeFreeBSD

D55377.id172387.diff
No OneTemporary

D55377.id172387.diff

diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -2573,8 +2573,8 @@
ktrsysctl(name, namelen);
#endif
memlocked = false;
- if (priv_check(td, PRIV_SYSCTL_MEMLOCK) != 0 &&
- req.oldptr != NULL && req.oldlen > 4 * PAGE_SIZE) {
+ if (req.oldptr != NULL && req.oldlen > 4 * PAGE_SIZE &&
+ priv_check(td, PRIV_SYSCTL_MEMLOCK) != 0) {
memlocked = true;
sx_xlock(&sysctlmemlock);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 7, 11:37 AM (9 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36164003
Default Alt Text
D55377.id172387.diff (470 B)

Event Timeline