Deleted Added
sdiff udiff text old ( 318293 ) new ( 359652 )
full compact
1/*-
2 * Copyright (c) 2013-16, Stacey D. Son
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/sys/kern/imgact_binmisc.c 318293 2017-05-15 14:41:47Z emaste $");
29
30#include <sys/param.h>
31#include <sys/ctype.h>
32#include <sys/sbuf.h>
33#include <sys/systm.h>
34#include <sys/sysproto.h>
35#include <sys/exec.h>
36#include <sys/imgact.h>

--- 705 unchanged lines hidden (view full) ---

742 link);
743 imgact_binmisc_destroy_entry(ibe);
744 }
745 sx_xunlock(&interp_list_sx);
746
747 sx_destroy(&interp_list_sx);
748}
749
750SYSINIT(imgact_binmisc, SI_SUB_EXEC, SI_ORDER_MIDDLE, imgact_binmisc_init, 0);
751SYSUNINIT(imgact_binmisc, SI_SUB_EXEC, SI_ORDER_MIDDLE, imgact_binmisc_fini, 0);
752
753/*
754 * Tell kern_execve.c about it, with a little help from the linker.
755 */
756static struct execsw imgact_binmisc_execsw = { imgact_binmisc_exec, KMOD_NAME };
757EXEC_SET(imgact_binmisc, imgact_binmisc_execsw);