HomeFreeBSD

veriexec: Simplify the initialization of loader tunable

Description

veriexec: Simplify the initialization of loader tunable

The loader tunable 'security.mac.veriexec.block_unlink' has been
already flagged with CTLFLAG_RDTUN, no need to re-fetch it with
TUNABLE_INT_FETCH.

While here move the definition of sysctl knob out of function body,
which is more common in FreeBSD.

No functional change intended.

Reviewed by: stevek
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42132

Details

Provenance
zleiAuthored on Nov 3 2023, 4:08 AM
Reviewer
stevek
Differential Revision
D42132: veriexec: Simplify the initialization of loader tunable
Parents
rG2008043f3867: loader: add target for dirdeps build
Branches
Unknown
Tags
Unknown