[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.137.40: ~ $
/* audit.h -- Auditing support
 *
 * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina.
 * All Rights Reserved.
 *
 * 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Written by Rickard E. (Rik) Faith <faith@redhat.com>
 *
 */

#ifndef _LINUX_AUDIT_H_
#define _LINUX_AUDIT_H_

#include <linux/types.h>
#include <linux/elf-em.h>

/* The netlink messages for the audit system is divided into blocks:
 * 1000 - 1099 are for commanding the audit system
 * 1100 - 1199 user space trusted application messages
 * 1200 - 1299 messages internal to the audit daemon
 * 1300 - 1399 audit event messages
 * 1400 - 1499 SE Linux use
 * 1500 - 1599 kernel LSPP events
 * 1600 - 1699 kernel crypto events
 * 1700 - 1799 kernel anomaly records
 * 1800 - 1899 kernel integrity events
 * 1900 - 1999 future kernel use
 * 2000 is for otherwise unclassified kernel audit messages (legacy)
 * 2001 - 2099 unused (kernel)
 * 2100 - 2199 user space anomaly records
 * 2200 - 2299 user space actions taken in response to anomalies
 * 2300 - 2399 user space generated LSPP events
 * 2400 - 2499 user space crypto events
 * 2500 - 2999 future user space (maybe integrity labels and related events)
 *
 * Messages from 1000-1199 are bi-directional. 1200-1299 & 2100 - 2999 are
 * exclusively user space. 1300-2099 is kernel --> user space 
 * communication.
 */
#define AUDIT_GET		1000	/* Get status */
#define AUDIT_SET		1001	/* Set status (enable/disable/auditd) */
#define AUDIT_LIST		1002	/* List syscall rules -- deprecated */
#define AUDIT_ADD		1003	/* Add syscall rule -- deprecated */
#define AUDIT_DEL		1004	/* Delete syscall rule -- deprecated */
#define AUDIT_USER		1005	/* Message from userspace -- deprecated */
#define AUDIT_LOGIN		1006	/* Define the login id and information */
#define AUDIT_WATCH_INS		1007	/* Insert file/dir watch entry */
#define AUDIT_WATCH_REM		1008	/* Remove file/dir watch entry */
#define AUDIT_WATCH_LIST	1009	/* List all file/dir watches */
#define AUDIT_SIGNAL_INFO	1010	/* Get info about sender of signal to auditd */
#define AUDIT_ADD_RULE		1011	/* Add syscall filtering rule */
#define AUDIT_DEL_RULE		1012	/* Delete syscall filtering rule */
#define AUDIT_LIST_RULES	1013	/* List syscall filtering rules */
#define AUDIT_TRIM		1014	/* Trim junk from watched tree */
#define AUDIT_MAKE_EQUIV	1015	/* Append to watched tree */
#define AUDIT_TTY_GET		1016	/* Get TTY auditing status */
#define AUDIT_TTY_SET		1017	/* Set TTY auditing status */
#define AUDIT_SET_FEATURE	1018	/* Turn an audit feature on or off */
#define AUDIT_GET_FEATURE	1019	/* Get which features are enabled */

#define AUDIT_FIRST_USER_MSG	1100	/* Userspace messages mostly uninteresting to kernel */
#define AUDIT_USER_AVC		1107	/* We filter this differently */
#define AUDIT_USER_TTY		1124	/* Non-ICANON TTY input meaning */
#define AUDIT_LAST_USER_MSG	1199
#define AUDIT_FIRST_USER_MSG2	2100	/* More user space messages */
#define AUDIT_LAST_USER_MSG2	2999
 
#define AUDIT_DAEMON_START      1200    /* Daemon startup record */
#define AUDIT_DAEMON_END        1201    /* Daemon normal stop record */
#define AUDIT_DAEMON_ABORT      1202    /* Daemon error stop record */
#define AUDIT_DAEMON_CONFIG     1203    /* Daemon config change */

#define AUDIT_SYSCALL		1300	/* Syscall event */
/* #define AUDIT_FS_WATCH	1301	 * Deprecated */
#define AUDIT_PATH		1302	/* Filename path information */
#define AUDIT_IPC		1303	/* IPC record */
#define AUDIT_SOCKETCALL	1304	/* sys_socketcall arguments */
#define AUDIT_CONFIG_CHANGE	1305	/* Audit system configuration change */
#define AUDIT_SOCKADDR		1306	/* sockaddr copied as syscall arg */
#define AUDIT_CWD		1307	/* Current working directory */
#define AUDIT_EXECVE		1309	/* execve arguments */
#define AUDIT_IPC_SET_PERM	1311	/* IPC new permissions record type */
#define AUDIT_MQ_OPEN		1312	/* POSIX MQ open record type */
#define AUDIT_MQ_SENDRECV	1313	/* POSIX MQ send/receive record type */
#define AUDIT_MQ_NOTIFY		1314	/* POSIX MQ notify record type */
#define AUDIT_MQ_GETSETATTR	1315	/* POSIX MQ get/set attribute record type */
#define AUDIT_KERNEL_OTHER	1316	/* For use by 3rd party modules */
#define AUDIT_FD_PAIR		1317    /* audit record for pipe/socketpair */
#define AUDIT_OBJ_PID		1318	/* ptrace target */
#define AUDIT_TTY		1319	/* Input on an administrative TTY */
#define AUDIT_EOE		1320	/* End of multi-record event */
#define AUDIT_BPRM_FCAPS	1321	/* Information about fcaps increasing perms */
#define AUDIT_CAPSET		1322	/* Record showing argument to sys_capset */
#define AUDIT_MMAP		1323	/* Record showing descriptor and flags in mmap */
#define AUDIT_NETFILTER_PKT	1324	/* Packets traversing netfilter chains */
#define AUDIT_NETFILTER_CFG	1325	/* Netfilter chain modifications */
#define AUDIT_SECCOMP		1326	/* Secure Computing event */
#define AUDIT_PROCTITLE		1327	/* Proctitle emit event */
#define AUDIT_FEATURE_CHANGE	1328	/* audit log listing feature changes */
#define AUDIT_REPLACE		1329	/* Replace auditd if this packet unanswerd */
#define AUDIT_KERN_MODULE	1330	/* Kernel Module events */
#define AUDIT_FANOTIFY		1331	/* Fanotify access decision */

#define AUDIT_AVC		1400	/* SE Linux avc denial or grant */
#define AUDIT_SELINUX_ERR	1401	/* Internal SE Linux Errors */
#define AUDIT_AVC_PATH		1402	/* dentry, vfsmount pair from avc */
#define AUDIT_MAC_POLICY_LOAD	1403	/* Policy file load */
#define AUDIT_MAC_STATUS	1404	/* Changed enforcing,permissive,off */
#define AUDIT_MAC_CONFIG_CHANGE	1405	/* Changes to booleans */
#define AUDIT_MAC_UNLBL_ALLOW	1406	/* NetLabel: allow unlabeled traffic */
#define AUDIT_MAC_CIPSOV4_ADD	1407	/* NetLabel: add CIPSOv4 DOI entry */
#define AUDIT_MAC_CIPSOV4_DEL	1408	/* NetLabel: del CIPSOv4 DOI entry */
#define AUDIT_MAC_MAP_ADD	1409	/* NetLabel: add LSM domain mapping */
#define AUDIT_MAC_MAP_DEL	1410	/* NetLabel: del LSM domain mapping */
#define AUDIT_MAC_IPSEC_ADDSA	1411	/* Not used */
#define AUDIT_MAC_IPSEC_DELSA	1412	/* Not used  */
#define AUDIT_MAC_IPSEC_ADDSPD	1413	/* Not used */
#define AUDIT_MAC_IPSEC_DELSPD	1414	/* Not used */
#define AUDIT_MAC_IPSEC_EVENT	1415	/* Audit an IPSec event */
#define AUDIT_MAC_UNLBL_STCADD	1416	/* NetLabel: add a static label */
#define AUDIT_MAC_UNLBL_STCDEL	1417	/* NetLabel: del a static label */

#define AUDIT_FIRST_KERN_ANOM_MSG   1700
#define AUDIT_LAST_KERN_ANOM_MSG    1799
#define AUDIT_ANOM_PROMISCUOUS      1700 /* Device changed promiscuous mode */
#define AUDIT_ANOM_ABEND            1701 /* Process ended abnormally */
#define AUDIT_ANOM_LINK		    1702 /* Suspicious use of file links */
#define AUDIT_INTEGRITY_DATA	    1800 /* Data integrity verification */
#define AUDIT_INTEGRITY_METADATA    1801 /* Metadata integrity verification */
#define AUDIT_INTEGRITY_STATUS	    1802 /* Integrity enable status */
#define AUDIT_INTEGRITY_HASH	    1803 /* Integrity HASH type */
#define AUDIT_INTEGRITY_PCR	    1804 /* PCR invalidation msgs */
#define AUDIT_INTEGRITY_RULE	    1805 /* policy rule */

#define AUDIT_KERNEL		2000	/* Asynchronous audit record. NOT A REQUEST. */

/* Rule flags */
#define AUDIT_FILTER_USER	0x00	/* Apply rule to user-generated messages */
#define AUDIT_FILTER_TASK	0x01	/* Apply rule at task creation (not syscall) */
#define AUDIT_FILTER_ENTRY	0x02	/* Apply rule at syscall entry */
#define AUDIT_FILTER_WATCH	0x03	/* Apply rule to file system watches */
#define AUDIT_FILTER_EXIT	0x04	/* Apply rule at syscall exit */
#define AUDIT_FILTER_TYPE	0x05	/* Apply rule at audit_log_start */
#define AUDIT_FILTER_FS		0x06	/* Apply rule at __audit_inode_child */

#define AUDIT_NR_FILTERS	7

#define AUDIT_FILTER_PREPEND	0x10	/* Prepend to front of list */

/* Rule actions */
#define AUDIT_NEVER    0	/* Do not build context if rule matches */
#define AUDIT_POSSIBLE 1	/* Build context if rule matches  */
#define AUDIT_ALWAYS   2	/* Generate audit record if rule matches */

/* Rule structure sizes -- if these change, different AUDIT_ADD and
 * AUDIT_LIST commands must be implemented. */
#define AUDIT_MAX_FIELDS   64
#define AUDIT_MAX_KEY_LEN  256
#define AUDIT_BITMASK_SIZE 64
#define AUDIT_WORD(nr) ((__u32)((nr)/32))
#define AUDIT_BIT(nr)  (1 << ((nr) - AUDIT_WORD(nr)*32))

#define AUDIT_SYSCALL_CLASSES 16
#define AUDIT_CLASS_DIR_WRITE 0
#define AUDIT_CLASS_DIR_WRITE_32 1
#define AUDIT_CLASS_CHATTR 2
#define AUDIT_CLASS_CHATTR_32 3
#define AUDIT_CLASS_READ 4
#define AUDIT_CLASS_READ_32 5
#define AUDIT_CLASS_WRITE 6
#define AUDIT_CLASS_WRITE_32 7
#define AUDIT_CLASS_SIGNAL 8
#define AUDIT_CLASS_SIGNAL_32 9

/* This bitmask is used to validate user input.  It represents all bits that
 * are currently used in an audit field constant understood by the kernel.
 * If you are adding a new #define AUDIT_<whatever>, please ensure that
 * AUDIT_UNUSED_BITS is updated if need be. */
#define AUDIT_UNUSED_BITS	0x07FFFC00

/* AUDIT_FIELD_COMPARE rule list */
#define AUDIT_COMPARE_UID_TO_OBJ_UID	1
#define AUDIT_COMPARE_GID_TO_OBJ_GID	2
#define AUDIT_COMPARE_EUID_TO_OBJ_UID	3
#define AUDIT_COMPARE_EGID_TO_OBJ_GID	4
#define AUDIT_COMPARE_AUID_TO_OBJ_UID	5
#define AUDIT_COMPARE_SUID_TO_OBJ_UID	6
#define AUDIT_COMPARE_SGID_TO_OBJ_GID	7
#define AUDIT_COMPARE_FSUID_TO_OBJ_UID	8
#define AUDIT_COMPARE_FSGID_TO_OBJ_GID	9

#define AUDIT_COMPARE_UID_TO_AUID	10
#define AUDIT_COMPARE_UID_TO_EUID	11
#define AUDIT_COMPARE_UID_TO_FSUID	12
#define AUDIT_COMPARE_UID_TO_SUID	13

#define AUDIT_COMPARE_AUID_TO_FSUID	14
#define AUDIT_COMPARE_AUID_TO_SUID	15
#define AUDIT_COMPARE_AUID_TO_EUID	16

#define AUDIT_COMPARE_EUID_TO_SUID	17
#define AUDIT_COMPARE_EUID_TO_FSUID	18

#define AUDIT_COMPARE_SUID_TO_FSUID	19

#define AUDIT_COMPARE_GID_TO_EGID	20
#define AUDIT_COMPARE_GID_TO_FSGID	21
#define AUDIT_COMPARE_GID_TO_SGID	22

#define AUDIT_COMPARE_EGID_TO_FSGID	23
#define AUDIT_COMPARE_EGID_TO_SGID	24
#define AUDIT_COMPARE_SGID_TO_FSGID	25

#define AUDIT_MAX_FIELD_COMPARE		AUDIT_COMPARE_SGID_TO_FSGID

/* Rule fields */
				/* These are useful when checking the
				 * task structure at task creation time
				 * (AUDIT_PER_TASK).  */
#define AUDIT_PID	0
#define AUDIT_UID	1
#define AUDIT_EUID	2
#define AUDIT_SUID	3
#define AUDIT_FSUID	4
#define AUDIT_GID	5
#define AUDIT_EGID	6
#define AUDIT_SGID	7
#define AUDIT_FSGID	8
#define AUDIT_LOGINUID	9
#define AUDIT_PERS	10
#define AUDIT_ARCH	11
#define AUDIT_MSGTYPE	12
#define AUDIT_SUBJ_USER	13	/* security label user */
#define AUDIT_SUBJ_ROLE	14	/* security label role */
#define AUDIT_SUBJ_TYPE	15	/* security label type */
#define AUDIT_SUBJ_SEN	16	/* security label sensitivity label */
#define AUDIT_SUBJ_CLR	17	/* security label clearance label */
#define AUDIT_PPID	18
#define AUDIT_OBJ_USER	19
#define AUDIT_OBJ_ROLE	20
#define AUDIT_OBJ_TYPE	21
#define AUDIT_OBJ_LEV_LOW	22
#define AUDIT_OBJ_LEV_HIGH	23
#define AUDIT_LOGINUID_SET	24
#define AUDIT_SESSIONID	25	/* Session ID */
#define AUDIT_FSTYPE	26	/* FileSystem Type */

				/* These are ONLY useful when checking
				 * at syscall exit time (AUDIT_AT_EXIT). */
#define AUDIT_DEVMAJOR	100
#define AUDIT_DEVMINOR	101
#define AUDIT_INODE	102
#define AUDIT_EXIT	103
#define AUDIT_SUCCESS   104	/* exit >= 0; value ignored */
#define AUDIT_WATCH	105
#define AUDIT_PERM	106
#define AUDIT_DIR	107
#define AUDIT_FILETYPE	108
#define AUDIT_OBJ_UID	109
#define AUDIT_OBJ_GID	110
#define AUDIT_FIELD_COMPARE	111
#define AUDIT_EXE	112

#define AUDIT_ARG0      200
#define AUDIT_ARG1      (AUDIT_ARG0+1)
#define AUDIT_ARG2      (AUDIT_ARG0+2)
#define AUDIT_ARG3      (AUDIT_ARG0+3)

#define AUDIT_FILTERKEY	210

#define AUDIT_NEGATE			0x80000000

/* These are the supported operators.
 *	4  2  1  8
 *	=  >  <  ?
 *	----------
 *	0  0  0	 0	00	nonsense
 *	0  0  0	 1	08	&  bit mask
 *	0  0  1	 0	10	<
 *	0  1  0	 0	20	>
 *	0  1  1	 0	30	!=
 *	1  0  0	 0	40	=
 *	1  0  0	 1	48	&=  bit test
 *	1  0  1	 0	50	<=
 *	1  1  0	 0	60	>=
 *	1  1  1	 1	78	all operators
 */
#define AUDIT_BIT_MASK			0x08000000
#define AUDIT_LESS_THAN			0x10000000
#define AUDIT_GREATER_THAN		0x20000000
#define AUDIT_NOT_EQUAL			0x30000000
#define AUDIT_EQUAL			0x40000000
#define AUDIT_BIT_TEST			(AUDIT_BIT_MASK|AUDIT_EQUAL)
#define AUDIT_LESS_THAN_OR_EQUAL	(AUDIT_LESS_THAN|AUDIT_EQUAL)
#define AUDIT_GREATER_THAN_OR_EQUAL	(AUDIT_GREATER_THAN|AUDIT_EQUAL)
#define AUDIT_OPERATORS			(AUDIT_EQUAL|AUDIT_NOT_EQUAL|AUDIT_BIT_MASK)

enum {
	Audit_equal,
	Audit_not_equal,
	Audit_bitmask,
	Audit_bittest,
	Audit_lt,
	Audit_gt,
	Audit_le,
	Audit_ge,
	Audit_bad
};

/* Status symbols */
				/* Mask values */
#define AUDIT_STATUS_ENABLED		0x0001
#define AUDIT_STATUS_FAILURE		0x0002
#define AUDIT_STATUS_PID		0x0004
#define AUDIT_STATUS_RATE_LIMIT		0x0008
#define AUDIT_STATUS_BACKLOG_LIMIT	0x0010
#define AUDIT_STATUS_LOST		0x0040

#define AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT	0x00000001
#define AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH	0x00000004
#define AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND	0x00000008
#define AUDIT_FEATURE_BITMAP_SESSIONID_FILTER	0x00000010
#define AUDIT_FEATURE_BITMAP_LOST_RESET		0x00000020
#define AUDIT_FEATURE_BITMAP_FILTER_FS		0x00000040

#define AUDIT_FEATURE_BITMAP_ALL (AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT | \
				  AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH | \
				  AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND | \
				  AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH | \
				  AUDIT_FEATURE_BITMAP_SESSIONID_FILTER | \
				  AUDIT_FEATURE_BITMAP_LOST_RESET | \
				  AUDIT_FEATURE_BITMAP_FILTER_FS)

/* deprecated: AUDIT_VERSION_* */
#define AUDIT_VERSION_LATEST 		AUDIT_FEATURE_BITMAP_ALL
#define AUDIT_VERSION_BACKLOG_LIMIT	AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT

				/* Failure-to-log actions */
#define AUDIT_FAIL_SILENT	0
#define AUDIT_FAIL_PRINTK	1
#define AUDIT_FAIL_PANIC	2

/* distinguish syscall tables */
#define __AUDIT_ARCH_64BIT 0x80000000
#define __AUDIT_ARCH_LE	   0x40000000
#define AUDIT_ARCH_ALPHA	(EM_ALPHA|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_ARM		(EM_ARM|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_ARMEB	(EM_ARM)
#define AUDIT_ARCH_CRIS		(EM_CRIS|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_FRV		(EM_FRV)
#define AUDIT_ARCH_H8300	(EM_H8_300)
#define AUDIT_ARCH_I386		(EM_386|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_IA64		(EM_IA_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_M32R		(EM_M32R)
#define AUDIT_ARCH_M68K		(EM_68K)
#define AUDIT_ARCH_MICROBLAZE	(EM_MICROBLAZE)
#define AUDIT_ARCH_MIPS		(EM_MIPS)
#define AUDIT_ARCH_MIPSEL	(EM_MIPS|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_MIPS64	(EM_MIPS|__AUDIT_ARCH_64BIT)
#define AUDIT_ARCH_MIPSEL64	(EM_MIPS|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_OPENRISC	(EM_OPENRISC)
#define AUDIT_ARCH_PARISC	(EM_PARISC)
#define AUDIT_ARCH_PARISC64	(EM_PARISC|__AUDIT_ARCH_64BIT)
#define AUDIT_ARCH_PPC		(EM_PPC)
/* do not define AUDIT_ARCH_PPCLE since it is not supported by audit */
#define AUDIT_ARCH_PPC64	(EM_PPC64|__AUDIT_ARCH_64BIT)
#define AUDIT_ARCH_PPC64LE	(EM_PPC64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_S390		(EM_S390)
#define AUDIT_ARCH_S390X	(EM_S390|__AUDIT_ARCH_64BIT)
#define AUDIT_ARCH_SH		(EM_SH)
#define AUDIT_ARCH_SHEL		(EM_SH|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_SH64		(EM_SH|__AUDIT_ARCH_64BIT)
#define AUDIT_ARCH_SHEL64	(EM_SH|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
#define AUDIT_ARCH_SPARC	(EM_SPARC)
#define AUDIT_ARCH_SPARC64	(EM_SPARCV9|__AUDIT_ARCH_64BIT)
#define AUDIT_ARCH_X86_64	(EM_X86_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)

#define AUDIT_PERM_EXEC		1
#define AUDIT_PERM_WRITE	2
#define AUDIT_PERM_READ		4
#define AUDIT_PERM_ATTR		8

struct audit_status {
	__u32		mask;		/* Bit mask for valid entries */
	__u32		enabled;	/* 1 = enabled, 0 = disabled */
	__u32		failure;	/* Failure-to-log action */
	__u32		pid;		/* pid of auditd process */
	__u32		rate_limit;	/* messages rate limit (per second) */
	__u32		backlog_limit;	/* waiting messages limit */
	__u32		lost;		/* messages lost */
	__u32		backlog;	/* messages waiting in queue */
	union {
		__u32	version;	/* deprecated: audit api version num */
		__u32	feature_bitmap;	/* bitmap of kernel audit features */
	};
};

struct audit_features {
#define AUDIT_FEATURE_VERSION	1
	__u32	vers;
	__u32	mask;		/* which bits we are dealing with */
	__u32	features;	/* which feature to enable/disable */
	__u32	lock;		/* which features to lock */
};

#define AUDIT_FEATURE_ONLY_UNSET_LOGINUID	0
#define AUDIT_FEATURE_LOGINUID_IMMUTABLE	1
#define AUDIT_LAST_FEATURE			AUDIT_FEATURE_LOGINUID_IMMUTABLE

#define audit_feature_valid(x)		((x) >= 0 && (x) <= AUDIT_LAST_FEATURE)
#define AUDIT_FEATURE_TO_MASK(x)	(1 << ((x) & 31)) /* mask for __u32 */

struct audit_tty_status {
	__u32		enabled;	/* 1 = enabled, 0 = disabled */
	__u32		log_passwd;	/* 1 = enabled, 0 = disabled */
};

#define AUDIT_UID_UNSET (unsigned int)-1

/* audit_rule_data supports filter rules with both integer and string
 * fields.  It corresponds with AUDIT_ADD_RULE, AUDIT_DEL_RULE and
 * AUDIT_LIST_RULES requests.
 */
struct audit_rule_data {
	__u32		flags;	/* AUDIT_PER_{TASK,CALL}, AUDIT_PREPEND */
	__u32		action;	/* AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS */
	__u32		field_count;
	__u32		mask[AUDIT_BITMASK_SIZE]; /* syscall(s) affected */
	__u32		fields[AUDIT_MAX_FIELDS];
	__u32		values[AUDIT_MAX_FIELDS];
	__u32		fieldflags[AUDIT_MAX_FIELDS];
	__u32		buflen;	/* total length of string fields */
	char		buf[0];	/* string fields buffer */
};

/* audit_rule is supported to maintain backward compatibility with
 * userspace.  It supports integer fields only and corresponds to
 * AUDIT_ADD, AUDIT_DEL and AUDIT_LIST requests.
 */
struct audit_rule {		/* for AUDIT_LIST, AUDIT_ADD, and AUDIT_DEL */
	__u32		flags;	/* AUDIT_PER_{TASK,CALL}, AUDIT_PREPEND */
	__u32		action;	/* AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS */
	__u32		field_count;
	__u32		mask[AUDIT_BITMASK_SIZE];
	__u32		fields[AUDIT_MAX_FIELDS];
	__u32		values[AUDIT_MAX_FIELDS];
};

#endif /* _LINUX_AUDIT_H_ */

Filemanager

Name Type Size Permission Actions
byteorder Folder 0755
caif Folder 0755
can Folder 0755
dvb Folder 0755
hdlc Folder 0755
hsi Folder 0755
iio Folder 0755
isdn Folder 0755
mmc Folder 0755
netfilter Folder 0755
netfilter_arp Folder 0755
netfilter_bridge Folder 0755
netfilter_ipv4 Folder 0755
netfilter_ipv6 Folder 0755
nfsd Folder 0755
raid Folder 0755
spi Folder 0755
sunrpc Folder 0755
tc_act Folder 0755
tc_ematch Folder 0755
usb Folder 0755
wimax Folder 0755
a.out.h File 7.15 KB 0644
acct.h File 3.58 KB 0644
adb.h File 1.05 KB 0644
adfs_fs.h File 873 B 0644
affs_hardblocks.h File 1.45 KB 0644
agpgart.h File 3.83 KB 0644
aio_abi.h File 3.1 KB 0644
apm_bios.h File 3.46 KB 0644
arcfb.h File 150 B 0644
atalk.h File 960 B 0644
atm.h File 7.64 KB 0644
atm_eni.h File 585 B 0644
atm_he.h File 343 B 0644
atm_idt77105.h File 892 B 0644
atm_nicstar.h File 1.19 KB 0644
atm_tcp.h File 1.52 KB 0644
atm_zatm.h File 1.57 KB 0644
atmapi.h File 889 B 0644
atmarp.h File 1.2 KB 0644
atmbr2684.h File 3.13 KB 0644
atmclip.h File 513 B 0644
atmdev.h File 7.44 KB 0644
atmioc.h File 1.55 KB 0644
atmlec.h File 2.26 KB 0644
atmmpc.h File 4.07 KB 0644
atmppp.h File 576 B 0644
atmsap.h File 4.79 KB 0644
atmsvc.h File 1.75 KB 0644
audit.h File 18.03 KB 0644
auto_fs.h File 2.53 KB 0644
auto_fs4.h File 4.3 KB 0644
auxvec.h File 1.4 KB 0644
ax25.h File 2.7 KB 0644
b1lli.h File 1.62 KB 0644
baycom.h File 820 B 0644
bfs_fs.h File 1.79 KB 0644
binfmts.h File 565 B 0644
blkpg.h File 1.53 KB 0644
blktrace_api.h File 4.38 KB 0644
bpf.h File 22.04 KB 0644
bpf_common.h File 1.2 KB 0644
bpf_perf_event.h File 453 B 0644
bpqether.h File 952 B 0644
bsg.h File 2.37 KB 0644
bt-bmc.h File 508 B 0644
btrfs.h File 25.07 KB 0644
can.h File 5.46 KB 0644
capability.h File 11.25 KB 0644
capi.h File 2.99 KB 0644
cciss_defs.h File 3.14 KB 0644
cciss_ioctl.h File 2.63 KB 0644
cdrom.h File 28.12 KB 0644
cgroupstats.h File 2.1 KB 0644
chio.h File 5.16 KB 0644
cm4000_cs.h File 1.68 KB 0644
cn_proc.h File 3.19 KB 0644
coda.h File 17.09 KB 0644
coda_psdev.h File 720 B 0644
coff.h File 12.12 KB 0644
connector.h File 2.14 KB 0644
const.h File 673 B 0644
cramfs_fs.h File 2.68 KB 0644
cuda.h File 842 B 0644
cyclades.h File 16.65 KB 0644
cycx_cfm.h File 2.86 KB 0644
dcbnl.h File 24.5 KB 0644
dccp.h File 6.22 KB 0644
devlink.h File 9.66 KB 0644
dlm.h File 2.43 KB 0644
dlm_device.h File 2.42 KB 0644
dlm_netlink.h File 1.04 KB 0644
dlm_plock.h File 831 B 0644
dlmconstants.h File 4.9 KB 0644
dm-ioctl.h File 10.55 KB 0644
dm-log-userspace.h File 14.82 KB 0644
dn.h File 4.42 KB 0644
dqblk_xfs.h File 8.72 KB 0644
edd.h File 5.41 KB 0644
efs_fs_sb.h File 2.11 KB 0644
elf-em.h File 1.83 KB 0644
elf-fdpic.h File 1.04 KB 0644
elf.h File 12.69 KB 0644
elfcore.h File 2.86 KB 0644
errno.h File 23 B 0644
errqueue.h File 1.1 KB 0644
ethtool.h File 71.11 KB 0644
eventpoll.h File 1.76 KB 0644
fadvise.h File 779 B 0644
falloc.h File 2.72 KB 0644
fanotify.h File 3.52 KB 0644
fb.h File 16 KB 0644
fcntl.h File 2.16 KB 0644
fd.h File 11.31 KB 0644
fdreg.h File 5.23 KB 0644
fib_rules.h File 1.58 KB 0644
fiemap.h File 2.65 KB 0644
filter.h File 1.99 KB 0644
firewire-cdev.h File 42.86 KB 0644
firewire-constants.h File 3.16 KB 0644
flat.h File 2.04 KB 0644
fou.h File 617 B 0644
fs.h File 8.47 KB 0644
fsl_hypervisor.h File 7.05 KB 0644
fuse.h File 16.41 KB 0644
futex.h File 4.81 KB 0644
gameport.h File 834 B 0644
gen_stats.h File 1.5 KB 0644
genetlink.h File 1.82 KB 0644
gfs2_ondisk.h File 12 KB 0644
gigaset_dev.h File 1.35 KB 0644
hdlc.h File 574 B 0644
hdlcdrv.h File 2.78 KB 0644
hdreg.h File 22.11 KB 0644
hid.h File 1.79 KB 0644
hiddev.h File 6.13 KB 0644
hidraw.h File 1.41 KB 0644
hpet.h File 680 B 0644
hw_breakpoint.h File 679 B 0644
hyperv.h File 10.22 KB 0644
hysdn_if.h File 1.29 KB 0644
i2c-dev.h File 2.37 KB 0644
i2c.h File 6.66 KB 0644
i2o-dev.h File 11.22 KB 0644
i8k.h File 1.4 KB 0644
icmp.h File 2.82 KB 0644
icmpv6.h File 3.82 KB 0644
if.h File 9.26 KB 0644
if_addr.h File 1.7 KB 0644
if_addrlabel.h File 658 B 0644
if_alg.h File 816 B 0644
if_arcnet.h File 3.63 KB 0644
if_arp.h File 6.3 KB 0644
if_bonding.h File 4.66 KB 0644
if_bridge.h File 6.46 KB 0644
if_cablemodem.h File 922 B 0644
if_eql.h File 1.26 KB 0644
if_ether.h File 7.25 KB 0644
if_fc.h File 1.63 KB 0644
if_fddi.h File 3.6 KB 0644
if_frad.h File 2.89 KB 0644
if_hippi.h File 4.07 KB 0644
if_infiniband.h File 1.13 KB 0644
if_link.h File 19.58 KB 0644
if_ltalk.h File 147 B 0644
if_macsec.h File 5.42 KB 0644
if_packet.h File 7.15 KB 0644
if_phonet.h File 361 B 0644
if_plip.h File 596 B 0644
if_ppp.h File 29 B 0644
if_pppol2tp.h File 3.18 KB 0644
if_pppox.h File 4.64 KB 0644
if_slip.h File 809 B 0644
if_team.h File 2.48 KB 0644
if_tun.h File 3.71 KB 0644
if_tunnel.h File 3.03 KB 0644
if_vlan.h File 1.69 KB 0644
if_x25.h File 817 B 0644
ife.h File 288 B 0644
igmp.h File 2.88 KB 0644
in.h File 9.36 KB 0644
in6.h File 6.97 KB 0644
in_route.h File 873 B 0644
inet_diag.h File 2.77 KB 0644
inotify.h File 2.85 KB 0644
input.h File 32.52 KB 0644
ioctl.h File 100 B 0644
ip.h File 3.47 KB 0644
ip6_tunnel.h File 1.67 KB 0644
ip_vs.h File 12.77 KB 0644
ipc.h File 1.99 KB 0644
ipmi.h File 14.63 KB 0644
ipmi_msgdefs.h File 3.21 KB 0644
ipsec.h File 884 B 0644
ipv6.h File 3.66 KB 0644
ipv6_route.h File 1.73 KB 0644
ipx.h File 1.79 KB 0644
irda.h File 7.31 KB 0644
irqnr.h File 104 B 0644
isdn.h File 5.58 KB 0644
isdn_divertif.h File 1.11 KB 0644
isdn_ppp.h File 1.82 KB 0644
isdnif.h File 2.25 KB 0644
iso_fs.h File 6.29 KB 0644
ivtv.h File 2.89 KB 0644
ivtvfb.h File 1.12 KB 0644
ixjuser.h File 24.53 KB 0644
jffs2.h File 6.85 KB 0644
joystick.h File 3.5 KB 0644
kd.h File 6.04 KB 0644
kdev_t.h File 320 B 0644
kernel-page-flags.h File 788 B 0644
kernel.h File 375 B 0644
kernelcapi.h File 956 B 0644
kexec.h File 1.92 KB 0644
keyboard.h File 12.42 KB 0644
keyctl.h File 2.98 KB 0644
kvm.h File 33.89 KB 0644
kvm_para.h File 819 B 0644
l2tp.h File 4.98 KB 0644
libc-compat.h File 4.03 KB 0644
limits.h File 874 B 0644
llc.h File 2.98 KB 0644
loop.h File 2.31 KB 0644
lp.h File 3.72 KB 0644
lwtunnel.h File 839 B 0644
magic.h File 2.9 KB 0644
major.h File 4.48 KB 0644
map_to_7segment.h File 7.02 KB 0644
matroxfb.h File 1.37 KB 0644
mdio.h File 13.74 KB 0644
media.h File 3.5 KB 0644
mei.h File 4.62 KB 0644
membarrier.h File 7.71 KB 0644
memfd.h File 186 B 0644
mempolicy.h File 2.35 KB 0644
meye.h File 2.41 KB 0644
mii.h File 7.76 KB 0644
minix_fs.h File 2.01 KB 0644
mman.h File 230 B 0644
mmtimer.h File 2.01 KB 0644
mpls.h File 1.33 KB 0644
mqueue.h File 2.01 KB 0644
mroute.h File 4.06 KB 0644
mroute6.h File 4.08 KB 0644
msdos_fs.h File 6.28 KB 0644
msg.h File 3.21 KB 0644
mtio.h File 7.92 KB 0644
n_r3964.h File 2.29 KB 0644
nbd.h File 2.34 KB 0644
ncp.h File 4.94 KB 0644
ncp_fs.h File 3.27 KB 0644
ncp_mount.h File 2.06 KB 0644
ncp_no.h File 651 B 0644
ndctl.h File 6.6 KB 0644
neighbour.h File 4.17 KB 0644
net.h File 1.97 KB 0644
net_dropmon.h File 1.07 KB 0644
net_namespace.h File 609 B 0644
net_tstamp.h File 4.06 KB 0644
netconf.h File 423 B 0644
netdevice.h File 1.46 KB 0644
netfilter.h File 1.6 KB 0644
netfilter_arp.h File 380 B 0644
netfilter_bridge.h File 768 B 0644
netfilter_decnet.h File 1.83 KB 0644
netfilter_ipv4.h File 2.02 KB 0644
netfilter_ipv6.h File 2.04 KB 0644
netlink.h File 6.13 KB 0644
netlink_diag.h File 1005 B 0644
netrom.h File 744 B 0644
nfc.h File 7.72 KB 0644
nfs.h File 4.31 KB 0644
nfs2.h File 1.37 KB 0644
nfs3.h File 2.24 KB 0644
nfs4.h File 5.95 KB 0644
nfs4_mount.h File 1.83 KB 0644
nfs_fs.h File 1.51 KB 0644
nfs_idmap.h File 2.19 KB 0644
nfs_mount.h File 2.32 KB 0644
nfsacl.h File 605 B 0644
nl80211.h File 270.89 KB 0644
nubus.h File 8.17 KB 0644
nvme_ioctl.h File 1.55 KB 0644
nvram.h File 469 B 0644
omap3isp.h File 20.19 KB 0644
omapfb.h File 5.72 KB 0644
oom.h File 448 B 0644
openvswitch.h File 31.79 KB 0644
packet_diag.h File 1.5 KB 0644
param.h File 78 B 0644
parport.h File 3.56 KB 0644
patchkey.h File 829 B 0644
pci.h File 1.29 KB 0644
pci_regs.h File 50.79 KB 0644
perf_event.h File 31.96 KB 0644
personality.h File 1.99 KB 0644
pfkeyv2.h File 9.91 KB 0644
pg.h File 2.23 KB 0644
phantom.h File 1.55 KB 0644
phonet.h File 4.51 KB 0644
pkt_cls.h File 12.49 KB 0644
pkt_sched.h File 20.63 KB 0644
pktcdvd.h File 2.56 KB 0644
pmu.h File 5.13 KB 0644
poll.h File 22 B 0644
posix_types.h File 1.01 KB 0644
ppdev.h File 3.07 KB 0644
ppp-comp.h File 2.41 KB 0644
ppp-ioctl.h File 5.29 KB 0644
ppp_defs.h File 4.93 KB 0644
pps.h File 4.06 KB 0644
prctl.h File 6.75 KB 0644
psample.h File 735 B 0644
ptp_clock.h File 5.09 KB 0644
ptrace.h File 3.08 KB 0644
qnx4_fs.h File 2.21 KB 0644
qnxtypes.h File 561 B 0644
quota.h File 5.78 KB 0644
radeonfb.h File 297 B 0644
random.h File 1.2 KB 0644
raw.h File 302 B 0644
rds.h File 7.9 KB 0644
reboot.h File 1.25 KB 0644
reiserfs_fs.h File 712 B 0644
reiserfs_xattr.h File 470 B 0644
resource.h File 2.09 KB 0644
rfkill.h File 3.5 KB 0644
romfs_fs.h File 1.15 KB 0644
rose.h File 2.12 KB 0644
route.h File 2.21 KB 0644
rtc.h File 3.85 KB 0644
rtnetlink.h File 17.02 KB 0644
scc.h File 4.43 KB 0644
sched.h File 2.26 KB 0644
screen_info.h File 2.36 KB 0644
sctp.h File 29.53 KB 0644
sdla.h File 2.71 KB 0644
seccomp.h File 1.83 KB 0644
securebits.h File 2.58 KB 0644
selinux_netlink.h File 1.11 KB 0644
sem.h File 2.54 KB 0644
serial.h File 3.04 KB 0644
serial_core.h File 5.11 KB 0644
serial_reg.h File 15.66 KB 0644
serio.h File 1.81 KB 0644
shm.h File 2.19 KB 0644
signal.h File 171 B 0644
signalfd.h File 1.07 KB 0644
snmp.h File 12.42 KB 0644
sock_diag.h File 431 B 0644
socket.h File 738 B 0644
sockios.h File 5.83 KB 0644
som.h File 5.35 KB 0644
sonet.h File 2.17 KB 0644
sonypi.h File 5.12 KB 0644
sound.h File 1.15 KB 0644
soundcard.h File 44.96 KB 0644
stat.h File 1 KB 0644
stddef.h File 1 B 0644
string.h File 175 B 0644
suspend_ioctls.h File 1.34 KB 0644
swab.h File 6.36 KB 0644
synclink.h File 8.71 KB 0644
sysctl.h File 25.46 KB 0644
sysinfo.h File 986 B 0644
target_core_user.h File 3.65 KB 0644
taskstats.h File 6.83 KB 0644
tcp.h File 5.93 KB 0644
tcp_metrics.h File 1.45 KB 0644
telephony.h File 8.84 KB 0644
termios.h File 443 B 0644
time.h File 1.54 KB 0644
times.h File 215 B 0644
timex.h File 6.17 KB 0644
tiocl.h File 1.63 KB 0644
tipc.h File 5.44 KB 0644
tipc_config.h File 14.1 KB 0644
toshiba.h File 1.24 KB 0644
tty.h File 1.33 KB 0644
tty_flags.h File 3.66 KB 0644
types.h File 1.4 KB 0644
udf_fs_i.h File 634 B 0644
udp.h File 1.28 KB 0644
uhid.h File 2.15 KB 0644
uinput.h File 5 KB 0644
uio.h File 668 B 0644
ultrasound.h File 4.39 KB 0644
un.h File 239 B 0644
unistd.h File 157 B 0644
unix_diag.h File 1.1 KB 0644
usbdevice_fs.h File 6.78 KB 0644
userfaultfd.h File 6.59 KB 0644
utime.h File 152 B 0644
utsname.h File 606 B 0644
uuid.h File 1.5 KB 0644
uvcvideo.h File 1.6 KB 0644
v4l2-common.h File 2.38 KB 0644
v4l2-controls.h File 37.34 KB 0644
v4l2-dv-timings.h File 25.75 KB 0644
v4l2-mediabus.h File 4.55 KB 0644
v4l2-subdev.h File 5.27 KB 0644
version.h File 332 B 0644
veth.h File 161 B 0644
vfio.h File 26.54 KB 0644
vhost.h File 7.13 KB 0644
videodev2.h File 67.36 KB 0644
virtio_9p.h File 1.99 KB 0644
virtio_balloon.h File 3.71 KB 0644
virtio_blk.h File 5.2 KB 0644
virtio_config.h File 3.34 KB 0644
virtio_console.h File 2.94 KB 0644
virtio_gpu.h File 8.23 KB 0644
virtio_ids.h File 2.32 KB 0644
virtio_input.h File 2.45 KB 0644
virtio_net.h File 9.5 KB 0644
virtio_pci.h File 6.63 KB 0644
virtio_ring.h File 6.18 KB 0644
virtio_rng.h File 265 B 0644
virtio_scsi.h File 5.13 KB 0644
virtio_types.h File 2.11 KB 0644
virtio_vsock.h File 3.01 KB 0644
vm_sockets.h File 5.13 KB 0644
vsockmon.h File 1.78 KB 0644
vt.h File 2.98 KB 0644
vtpm_proxy.h File 1.62 KB 0644
wait.h File 600 B 0644
wanrouter.h File 390 B 0644
watchdog.h File 2.22 KB 0644
wimax.h File 8.17 KB 0644
wireless.h File 41.65 KB 0644
wmi.h File 1.84 KB 0644
x25.h File 3.42 KB 0644
xattr.h File 2.53 KB 0644
xfrm.h File 11 KB 0644