mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
um: -include user.h for USER_OBJ, trim includes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
4de1c5f65c
commit
078073a3d4
@ -11,10 +11,8 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "chan_user.h"
|
#include "chan_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
void generic_close(int fd, void *unused)
|
void generic_close(int fd, void *unused)
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
|
|
||||||
static inline void *cow_malloc(int size)
|
static inline void *cow_malloc(int size)
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
enum request_type { REQ_NEW_CONTROL };
|
enum request_type { REQ_NEW_CONTROL };
|
||||||
|
|
||||||
|
@ -9,10 +9,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include "chan_user.h"
|
#include "chan_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct fd_chan {
|
struct fd_chan {
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct dog_data {
|
struct dog_data {
|
||||||
int stdin;
|
int stdin;
|
||||||
|
@ -10,9 +10,7 @@
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "mconsole.h"
|
#include "mconsole.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
static struct mconsole_command commands[] = {
|
static struct mconsole_command commands[] = {
|
||||||
/*
|
/*
|
||||||
|
@ -12,10 +12,8 @@
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
int tap_open_common(void *dev, char *gate_addr)
|
int tap_open_common(void *dev, char *gate_addr)
|
||||||
{
|
{
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "pcap_user.h"
|
#include "pcap_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
#define PCAP_FD(p) (*(int *)(p))
|
#define PCAP_FD(p) (*(int *)(p))
|
||||||
|
|
||||||
|
@ -10,11 +10,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include "chan_user.h"
|
#include "chan_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "port.h"
|
#include "port.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct port_chan {
|
struct port_chan {
|
||||||
int raw;
|
int raw;
|
||||||
|
@ -12,10 +12,8 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "chan_user.h"
|
#include "chan_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct pty_chan {
|
struct pty_chan {
|
||||||
void (*announce)(char *dev_name, int dev);
|
void (*announce)(char *dev_name, int dev);
|
||||||
|
@ -11,12 +11,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/termios.h>
|
#include <sys/termios.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "slip.h"
|
#include "slip.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
static int slip_user_init(void *data, void *dev)
|
static int slip_user_init(void *data, void *dev)
|
||||||
{
|
{
|
||||||
|
@ -7,11 +7,9 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "slirp.h"
|
#include "slirp.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
static int slirp_user_init(void *data, void *dev)
|
static int slirp_user_init(void *data, void *dev)
|
||||||
{
|
{
|
||||||
|
@ -7,10 +7,8 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include "chan_user.h"
|
#include "chan_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct tty_chan {
|
struct tty_chan {
|
||||||
char *dev;
|
char *dev;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include "asm/types.h"
|
#include "asm/types.h"
|
||||||
#include "user.h"
|
|
||||||
#include "ubd_user.h"
|
#include "ubd_user.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "cow.h"
|
#include "cow.h"
|
||||||
|
@ -15,11 +15,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "umcast.h"
|
#include "umcast.h"
|
||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
static struct sockaddr_in *new_addr(char *addr, unsigned short port)
|
static struct sockaddr_in *new_addr(char *addr, unsigned short port)
|
||||||
{
|
{
|
||||||
|
@ -6,10 +6,8 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <libvdeplug.h>
|
#include <libvdeplug.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
#include "vde.h"
|
#include "vde.h"
|
||||||
|
|
||||||
static int vde_user_init(void *data, void *dev)
|
static int vde_user_init(void *data, void *dev)
|
||||||
|
@ -11,10 +11,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include "chan_user.h"
|
#include "chan_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
#include "xterm.h"
|
#include "xterm.h"
|
||||||
|
|
||||||
struct xterm_chan {
|
struct xterm_chan {
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "as-layout.h"
|
#include "as-layout.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "ptrace_user.h"
|
#include "ptrace_user.h"
|
||||||
#include "stub-data.h"
|
#include "stub-data.h"
|
||||||
#include "sysdep/stub.h"
|
#include "sysdep/stub.h"
|
||||||
|
@ -11,10 +11,8 @@
|
|||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include "aio.h"
|
#include "aio.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct aio_thread_req {
|
struct aio_thread_req {
|
||||||
enum aio_type type;
|
enum aio_type type;
|
||||||
|
@ -13,11 +13,9 @@
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include "etap.h"
|
#include "etap.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "net_user.h"
|
#include "net_user.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
#define MAX_PACKET ETH_MAX_PACKET
|
#define MAX_PACKET ETH_MAX_PACKET
|
||||||
|
|
||||||
|
@ -13,11 +13,9 @@
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "tuntap.h"
|
#include "tuntap.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
static int tuntap_user_init(void *data, void *dev)
|
static int tuntap_user_init(void *data, void *dev)
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "elf_user.h"
|
#include "elf_user.h"
|
||||||
#include "mem_user.h"
|
#include "mem_user.h"
|
||||||
#include <kern_constants.h>
|
|
||||||
|
|
||||||
typedef Elf32_auxv_t elf_auxv_t;
|
typedef Elf32_auxv_t elf_auxv_t;
|
||||||
|
|
||||||
|
@ -13,9 +13,7 @@
|
|||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
static void copy_stat(struct uml_stat *dst, const struct stat64 *src)
|
static void copy_stat(struct uml_stat *dst, const struct stat64 *src)
|
||||||
{
|
{
|
||||||
|
@ -10,11 +10,9 @@
|
|||||||
#include <linux/limits.h>
|
#include <linux/limits.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct helper_data {
|
struct helper_data {
|
||||||
void (*pre_exec)(void*);
|
void (*pre_exec)(void*);
|
||||||
|
@ -9,11 +9,9 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "irq_user.h"
|
#include "irq_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "process.h"
|
#include "process.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Locked by irq_lock in arch/um/kernel/irq.c. Changed by os_create_pollfd
|
* Locked by irq_lock in arch/um/kernel/irq.c. Changed by os_create_pollfd
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include "as-layout.h"
|
#include "as-layout.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
|
@ -14,9 +14,7 @@
|
|||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
/* Modified by which_tmpdir, which is called during early boot */
|
/* Modified by which_tmpdir, which is called during early boot */
|
||||||
static char *default_tmpdir = "/tmp";
|
static char *default_tmpdir = "/tmp";
|
||||||
|
@ -13,12 +13,10 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "longjmp.h"
|
#include "longjmp.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "process.h"
|
#include "process.h"
|
||||||
#include "skas_ptrace.h"
|
#include "skas_ptrace.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
#define ARBITRARY_ADDR -1
|
#define ARBITRARY_ADDR -1
|
||||||
#define FAILURE_PID -1
|
#define FAILURE_PID -1
|
||||||
|
@ -11,14 +11,12 @@
|
|||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "process.h"
|
#include "process.h"
|
||||||
#include "sigio.h"
|
#include "sigio.h"
|
||||||
#include "um_malloc.h"
|
#include "um_malloc.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Protected by sigio_lock(), also used by sigio_cleanup, which is an
|
* Protected by sigio_lock(), also used by sigio_cleanup, which is an
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
#include "process.h"
|
#include "process.h"
|
||||||
#include "sysdep/barrier.h"
|
#include "sysdep/barrier.h"
|
||||||
#include "sysdep/sigcontext.h"
|
#include "sysdep/sigcontext.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
/* Copied from linux/compiler-gcc.h since we can't include it directly */
|
/* Copied from linux/compiler-gcc.h since we can't include it directly */
|
||||||
#define barrier() __asm__ __volatile__("": : :"memory")
|
#define barrier() __asm__ __volatile__("": : :"memory")
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "as-layout.h"
|
#include "as-layout.h"
|
||||||
#include "mm_id.h"
|
#include "mm_id.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
@ -17,7 +16,6 @@
|
|||||||
#include "ptrace_user.h"
|
#include "ptrace_user.h"
|
||||||
#include "registers.h"
|
#include "registers.h"
|
||||||
#include "skas.h"
|
#include "skas.h"
|
||||||
#include "user.h"
|
|
||||||
#include "sysdep/ptrace.h"
|
#include "sysdep/ptrace.h"
|
||||||
#include "sysdep/stub.h"
|
#include "sysdep/stub.h"
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include "as-layout.h"
|
#include "as-layout.h"
|
||||||
#include "chan_user.h"
|
#include "chan_user.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "mem.h"
|
#include "mem.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
@ -24,7 +23,6 @@
|
|||||||
#include "registers.h"
|
#include "registers.h"
|
||||||
#include "skas.h"
|
#include "skas.h"
|
||||||
#include "skas_ptrace.h"
|
#include "skas_ptrace.h"
|
||||||
#include "user.h"
|
|
||||||
#include "sysdep/stub.h"
|
#include "sysdep/stub.h"
|
||||||
|
|
||||||
int is_skas_winch(int pid, int fd, void *data)
|
int is_skas_winch(int pid, int fd, void *data)
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "mem_user.h"
|
#include "mem_user.h"
|
||||||
#include "ptrace_user.h"
|
#include "ptrace_user.h"
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <sys/user.h>
|
#include <sys/user.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "longjmp.h"
|
#include "longjmp.h"
|
||||||
#include "user.h"
|
|
||||||
#include "sysdep/ptrace_user.h"
|
#include "sysdep/ptrace_user.h"
|
||||||
|
|
||||||
int save_fp_registers(int pid, unsigned long *fp_regs)
|
int save_fp_registers(int pid, unsigned long *fp_regs)
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include "longjmp.h"
|
#include "longjmp.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
|
|
||||||
static jmp_buf buf;
|
static jmp_buf buf;
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "sysdep/tls.h"
|
#include "sysdep/tls.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
/* Checks whether host supports TLS, and sets *tls_min according to the value
|
/* Checks whether host supports TLS, and sets *tls_min according to the value
|
||||||
* valid on the host.
|
* valid on the host.
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#define __FRAME_OFFSETS
|
#define __FRAME_OFFSETS
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "longjmp.h"
|
#include "longjmp.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
int save_fp_registers(int pid, unsigned long *fp_regs)
|
int save_fp_registers(int pid, unsigned long *fp_regs)
|
||||||
{
|
{
|
||||||
|
@ -8,11 +8,9 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "process.h"
|
#include "process.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
int set_interval(void)
|
int set_interval(void)
|
||||||
{
|
{
|
||||||
|
@ -7,10 +7,8 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
struct grantpt_info {
|
struct grantpt_info {
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -13,9 +13,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
#define UML_DIR "~/.uml/"
|
#define UML_DIR "~/.uml/"
|
||||||
|
|
||||||
|
@ -13,9 +13,7 @@
|
|||||||
#include <wait.h>
|
#include <wait.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "user.h"
|
|
||||||
|
|
||||||
void stack_protections(unsigned long address)
|
void stack_protections(unsigned long address)
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS))
|
|||||||
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
|
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
|
||||||
|
|
||||||
$(USER_OBJS:.o=.%): \
|
$(USER_OBJS:.o=.%): \
|
||||||
c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) $(CFLAGS_$(basetarget).o)
|
c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include user.h $(CFLAGS_$(basetarget).o)
|
||||||
$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
|
$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \
|
||||||
-Dunix -D__unix__ -D__$(SUBARCH)__ $(CF)
|
-Dunix -D__unix__ -D__$(SUBARCH)__ $(CF)
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@ subarch-obj-$(CONFIG_MODULES) += kernel/module.o
|
|||||||
|
|
||||||
USER_OBJS := bugs.o ptrace_user.o fault.o
|
USER_OBJS := bugs.o ptrace_user.o fault.o
|
||||||
|
|
||||||
USER_OBJS += user-offsets.s
|
|
||||||
extra-y += user-offsets.s
|
extra-y += user-offsets.s
|
||||||
|
$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS)
|
||||||
|
|
||||||
UNPROFILE_OBJS := stub_segv.o
|
UNPROFILE_OBJS := stub_segv.o
|
||||||
CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
|
CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
|
||||||
|
@ -4,11 +4,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "kern_constants.h"
|
|
||||||
#include "kern_util.h"
|
#include "kern_util.h"
|
||||||
#include "longjmp.h"
|
#include "longjmp.h"
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
#include "user.h"
|
|
||||||
#include "sysdep/ptrace.h"
|
#include "sysdep/ptrace.h"
|
||||||
|
|
||||||
/* Set during early boot */
|
/* Set during early boot */
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#include "as-layout.h"
|
#include "as-layout.h"
|
||||||
#include "stub-data.h"
|
#include "stub-data.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
|
|
||||||
extern void stub_segv_handler(int sig);
|
extern void stub_segv_handler(int sig);
|
||||||
extern void stub_clone_handler(void);
|
extern void stub_clone_handler(void);
|
||||||
|
@ -18,8 +18,8 @@ ldt-y = ../sys-i386/ldt.o
|
|||||||
|
|
||||||
USER_OBJS := ptrace_user.o
|
USER_OBJS := ptrace_user.o
|
||||||
|
|
||||||
USER_OBJS += user-offsets.s
|
|
||||||
extra-y += user-offsets.s
|
extra-y += user-offsets.s
|
||||||
|
$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS)
|
||||||
|
|
||||||
UNPROFILE_OBJS := stub_segv.o
|
UNPROFILE_OBJS := stub_segv.o
|
||||||
CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
|
CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <sysdep/ptrace_user.h>
|
#include <sysdep/ptrace_user.h>
|
||||||
#include "as-layout.h"
|
#include "as-layout.h"
|
||||||
#include "stub-data.h"
|
#include "stub-data.h"
|
||||||
#include "kern_constants.h"
|
|
||||||
|
|
||||||
extern void stub_segv_handler(int sig);
|
extern void stub_segv_handler(int sig);
|
||||||
extern void stub_clone_handler(void);
|
extern void stub_clone_handler(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user