HomeFreeBSD

jail: Fix lock-free access to dynamic pr.allow flags

Description

jail: Fix lock-free access to dynamic pr.allow flags

Use atomic access and a memory barrier to ensure that the flag parameter
in pr_flag_allow is indeed set after the rest of the structure is valid.

Simplify adding flag bits with pr_allow_all, a dynamic version of
PR_ALLOW_ALL_STATIC.

Details

Provenance
jamieAuthored on Dec 26 2020, 8:53 PM
Parents
rG6270ee0b6726: Use the base address for early arm64 page tables
Branches
Unknown
Tags
Unknown