Deleted Added
full compact
39c39
< * $FreeBSD: head/sys/security/mac/mac_net.c 102115 2002-08-19 16:59:37Z rwatson $
---
> * $FreeBSD: head/sys/security/mac/mac_net.c 102123 2002-08-19 17:59:48Z rwatson $
383a384,387
> case MAC_SYSCALL:
> mpc->mpc_ops->mpo_syscall =
> mpe->mpe_function;
> break;
3215a3220,3246
> int
> mac_syscall(struct thread *td, struct mac_syscall_args *uap)
> {
> struct mac_policy_conf *mpc;
> char target[MAC_MAX_POLICY_NAME];
> int error;
>
> error = copyinstr(SCARG(uap, policy), target, sizeof(target), NULL);
> if (error)
> return (error);
>
> error = ENOSYS;
> MAC_POLICY_LIST_BUSY();
> LIST_FOREACH(mpc, &mac_policy_list, mpc_list) {
> if (strcmp(mpc->mpc_name, target) == 0 &&
> mpc->mpc_ops->mpo_syscall != NULL) {
> error = mpc->mpc_ops->mpo_syscall(td,
> SCARG(uap, call), SCARG(uap, arg));
> goto out;
> }
> }
>
> out:
> MAC_POLICY_LIST_UNBUSY();
> return (error);
> }
>
3262a3294,3300
> int
> mac_syscall(struct thread *td, struct mac_syscall_args *uap)
> {
>
> return (ENOSYS);
> }
>