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

(cherry picked from commit 292c814931d975d56d5ffa7c3c85191d56a059c4)

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
rG750580d15588: MAC/do: Remove PR_METHOD_REMOVE method
Branches
Unknown
Tags
Unknown