mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-21 15:43:21 +02:00
8b22677101
Address checkpatch.pl warning below, across the audit subsystem: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Minor cleanup, no functional changes. Signed-off-by: Ricardo Robaina <rrobaina@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
34 lines
808 B
C
34 lines
808 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/* audit_arch.h -- Arch layer specific support for audit
|
|
*
|
|
* Copyright 2021 Red Hat Inc., Durham, North Carolina.
|
|
* All Rights Reserved.
|
|
*
|
|
* Author: Richard Guy Briggs <rgb@redhat.com>
|
|
*/
|
|
#ifndef _LINUX_AUDIT_ARCH_H_
|
|
#define _LINUX_AUDIT_ARCH_H_
|
|
|
|
enum auditsc_class_t {
|
|
AUDITSC_NATIVE = 0,
|
|
AUDITSC_COMPAT,
|
|
AUDITSC_OPEN,
|
|
AUDITSC_OPENAT,
|
|
AUDITSC_SOCKETCALL,
|
|
AUDITSC_EXECVE,
|
|
AUDITSC_OPENAT2,
|
|
|
|
AUDITSC_NVALS /* count */
|
|
};
|
|
|
|
extern int audit_classify_compat_syscall(int abi, unsigned int syscall);
|
|
|
|
/* only for compat system calls */
|
|
extern unsigned int compat_write_class[];
|
|
extern unsigned int compat_read_class[];
|
|
extern unsigned int compat_dir_class[];
|
|
extern unsigned int compat_chattr_class[];
|
|
extern unsigned int compat_signal_class[];
|
|
|
|
#endif
|