HomeFreeBSD

MAC/do: sysctl_rules(): Always copy the rules specification string

Description

MAC/do: sysctl_rules(): Always copy the rules specification string

We are not guaranteed that the 'rules' storage stays stable if we don't
hold the prison lock. For this reason, always copy the specification
string (under the lock).

Reviewed by: bapt
Approved by: markj (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47600

Details

Provenance
olceAuthored on Jul 3 2024, 12:52 PM
Reviewer
bapt
Differential Revision
D47600: MAC/do: sysctl_rules(): Always copy the rules specification string
Parents
rG301eeb10dc19: MAC/do: Remove PR_METHOD_REMOVE method
Branches
Unknown
Tags
Unknown