adjkerntz(8): revert "detect extra jailed invokation to keep logs clean"
This reverts commit 048ce0876f
due to bugs. Reworked change will be committed later hopefully.
This commit is contained in:
parent
26b5deef22
commit
95144583f7
@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
* with Garrett Wollman and Bruce Evans fixes.
|
* with Garrett Wollman and Bruce Evans fixes.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <errno.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -160,12 +159,6 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
len = sizeof(kern_offset);
|
len = sizeof(kern_offset);
|
||||||
if (sysctlbyname("machdep.adjkerntz", &kern_offset, &len, NULL, 0) == -1) {
|
if (sysctlbyname("machdep.adjkerntz", &kern_offset, &len, NULL, 0) == -1) {
|
||||||
if (errno == EPERM && !init && geteuid() == 0)
|
|
||||||
/*
|
|
||||||
* Surplus call from jailed root crontab.
|
|
||||||
* Avoid spamming logs.
|
|
||||||
*/
|
|
||||||
return 1;
|
|
||||||
syslog(LOG_ERR, "sysctl(\"machdep.adjkerntz\"): %m");
|
syslog(LOG_ERR, "sysctl(\"machdep.adjkerntz\"): %m");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user