aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac/mac_syscalls.h
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2025-11-07 04:19:31 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-01-16 00:23:39 +0000
commitbd55cbb50c58876281f925cfd91961544f0153ad (patch)
treebcc6baf910302604eab656fe64897006f2524db0 /sys/security/mac/mac_syscalls.h
parent626fe12e2801a06c59eaa056ecf11f573e30ecbb (diff)
kern: add a mac.label jail parameter
Have it take a `struct mac` and we'll paper over the difference for jail(8)/jls(8) in libjail(3). The mac_syscalls.h model is taken from mac_set_proc_*() that were previously done. Reviewed by: olce Differential Revision: https://reviews.freebsd.org/D53958
Diffstat (limited to 'sys/security/mac/mac_syscalls.h')
-rw-r--r--sys/security/mac/mac_syscalls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/security/mac/mac_syscalls.h b/sys/security/mac/mac_syscalls.h
index f95ff3ef1264..76c8e6d188bb 100644
--- a/sys/security/mac/mac_syscalls.h
+++ b/sys/security/mac/mac_syscalls.h
@@ -30,4 +30,14 @@ int mac_set_proc_core(struct thread *const td, struct ucred *const newcred,
void mac_set_proc_finish(struct thread *const td, bool proc_label_set,
void *const mac_set_proc_data);
+struct vfsoptlist;
+int mac_get_prison(struct thread *const td, struct prison *pr,
+ struct vfsoptlist *opts);
+int mac_set_prison_prepare(struct thread *const td, struct vfsoptlist *opts,
+ void **const mac_set_prison_data);
+int mac_set_prison_core(struct thread *const td, struct prison *pr,
+ void *const mac_set_prison_data);
+void mac_set_prison_finish(struct thread *const td, bool prison_label_set,
+ void *const mac_set_prison_data);
+
#endif /* !_SECURITY_MAC_MAC_SYSCALLS_H_ */