summaryrefslogtreecommitdiff
path: root/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2025-11-26 23:24:14 -0600
committerKyle Evans <kevans@FreeBSD.org>2026-01-15 18:23:40 -0600
commitdb3b39f063d9f05ee808b9c5a11146ed6810d857 (patch)
treea87d4193b8318641d29bbc22f455f2baf70383e4 /source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent1af8d5652a01f79d055436c2ee83219700e7b16c (diff)
libjail: extend struct handlers to included MAC labels
MAC label handling is a little special; to avoid being too disruptive, we allocate a `mac_t *` here for the value so that we can mac_prepare() or mac_from_text() into. As a result, we need: - A custom free() handler to avoid leaking the *jp_value - A custom jailparam_get() handler to mac_prepare() the mac_t and populate the iove properly, so that the kernel doesn't have to do something funky like copyin, dereference, copyin again. - A custom jailparam_set() handler to similarly populate the iovec properly. Reviewed by: jamie Differential Revision: https://reviews.freebsd.org/D53960
Diffstat (limited to 'source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions