#ifndef _SECURITY_MAC_MAC_SYSCALLS_H_
#define _SECURITY_MAC_MAC_SYSCALLS_H_
#ifndef _KERNEL
#error "no user-serviceable parts inside"
#endif
int mac_label_copyin(const struct mac *const u_mac, struct mac *const mac,
char **const u_string);
void free_copied_label(const struct mac *const mac);
#ifdef COMPAT_FREEBSD32
struct mac32;
int mac_label_copyin32(const struct mac32 *const u_mac,
struct mac *const mac, char **const u_string);
#endif
int mac_set_proc_prepare(struct thread *const td,
const struct mac *const mac, void **const mac_set_proc_data);
int mac_set_proc_core(struct thread *const td, struct ucred *const newcred,
void *const mac_set_proc_data);
void mac_set_proc_finish(struct thread *const td, bool proc_label_set,
void *const mac_set_proc_data);
#endif