This file is indexed.

/usr/include/emu/environment/linux/emu_env_linux.h is in libemu-dev 0.2.0+git20120122-1.2+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/********************************************************************************
 *                               libemu
 *
 *                    - x86 shellcode emulation -
 *
 *
 * Copyright (C) 2007  Paul Baecher & Markus Koetter
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 * 
 *             contact nepenthesdev@users.sourceforge.net  
 *
 *******************************************************************************/

#ifndef HAVE_EMU_ENV_LINUX_H
#define HAVE_EMU_ENV_LINUX_H

#include <stdlib.h>
#include <string.h>
#include <errno.h>

#include "emu/emu.h"
#include "emu/emu_cpu.h"
#include "emu/emu_cpu_data.h"
#include "emu/emu_memory.h"
#include "emu/emu_hashtable.h"

struct emu_profile;
struct emu_env;

struct emu_env_linux
{
	struct emu *emu;
	struct emu_hashtable *syscall_hooks_by_name;
	struct emu_env_linux_syscall *syscall_hookx;
	struct emu_env_hook *hooks;
//	struct emu_profile *profile;
};

struct emu_env_linux *emu_env_linux_new(struct emu *e);
void emu_env_linux_free(struct emu_env_linux *eel);

struct emu_env_hook *emu_env_linux_syscall_check(struct emu_env *env);


struct emu_env_linux_syscall_entry
{
	const char *name;
	const char *(*fnhook)(struct emu_env_linux *env);
};


typedef uint32_t (*userhook)(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall, ...);

struct emu_env_linux_syscall
{
	const char *name;
	int32_t		(*fnhook)(struct emu_env *env, struct emu_env_hook *hook);
	void *userdata;
	uint32_t (*userhook)(struct emu_env *env, struct emu_env_hook *hook, ...);
};

int32_t emu_env_linux_syscall_hook(struct emu_env *env, const char *syscallname,
								   uint32_t (*userhook)(struct emu_env *env, struct emu_env_hook *hook, ...),
								   void *userdata);

const char *env_linux_socketcall(struct emu_env_linux *env);

#endif