Stefan Eßer 1ebef47735 Make sysctl user.local a tunable that can be written at run-time
This sysctl value had been provided as a read-only variable that is
compiled into the C library based on the value of _PATH_LOCALBASE in
paths.h.

After this change, the value is compiled into the kernel as an empty
string, which is translated to _PATH_LOCALBASE by the C library.

This empty string can be overridden at boot time or by a privileged
user at run time and will then be returned by sysctl.

When set to an empty string, the value returned by sysctl reverts to
_PATH_LOCALBASE.

This update does not change the behavior on any system that does
not modify the default value of user.localbase.

I consider this change as experimental and would prefer if the run-time
write permission was reconsidered and the sysctl variable defined with
CLFLAG_RDTUN instead to restrict it to be set at boot time.

MFC after:	1 month
2020-10-31 23:48:41 +00:00
..
2020-10-24 17:08:59 +00:00
2020-10-07 21:56:58 +00:00
2020-09-11 13:28:37 +00:00
2020-09-11 13:28:37 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-09-11 13:28:37 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-09-11 13:28:37 +00:00
2020-10-09 19:12:44 +00:00
2020-10-09 19:12:44 +00:00
2020-09-11 13:28:37 +00:00
2020-10-24 17:08:59 +00:00