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

(cherry picked from commit bb8d4411e0c668415538f66fb25e6b38bb910cdd)

Details

Provenance
zleiAuthored on Nov 3 2023, 4:08 AM
Reviewer
stevek
Differential Revision
D42132: veriexec: Simplify the initialization of loader tunable
Parents
rG5d031613affa: bpf: Make dead_bpf_if const
Branches
Unknown
Tags
Unknown