18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * AppArmor security module 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * This file contains AppArmor basic global 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright (C) 1998-2008 Novell/SUSE 88c2ecf20Sopenharmony_ci * Copyright 2009-2017 Canonical Ltd. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef __APPARMOR_H 128c2ecf20Sopenharmony_ci#define __APPARMOR_H 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#include <linux/types.h> 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* 178c2ecf20Sopenharmony_ci * Class of mediation types in the AppArmor policy db 188c2ecf20Sopenharmony_ci */ 198c2ecf20Sopenharmony_ci#define AA_CLASS_ENTRY 0 208c2ecf20Sopenharmony_ci#define AA_CLASS_UNKNOWN 1 218c2ecf20Sopenharmony_ci#define AA_CLASS_FILE 2 228c2ecf20Sopenharmony_ci#define AA_CLASS_CAP 3 238c2ecf20Sopenharmony_ci#define AA_CLASS_DEPRECATED 4 248c2ecf20Sopenharmony_ci#define AA_CLASS_RLIMITS 5 258c2ecf20Sopenharmony_ci#define AA_CLASS_DOMAIN 6 268c2ecf20Sopenharmony_ci#define AA_CLASS_MOUNT 7 278c2ecf20Sopenharmony_ci#define AA_CLASS_PTRACE 9 288c2ecf20Sopenharmony_ci#define AA_CLASS_SIGNAL 10 298c2ecf20Sopenharmony_ci#define AA_CLASS_NET 14 308c2ecf20Sopenharmony_ci#define AA_CLASS_LABEL 16 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#define AA_CLASS_LAST AA_CLASS_LABEL 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci/* Control parameters settable through module/boot flags */ 358c2ecf20Sopenharmony_ciextern enum audit_mode aa_g_audit; 368c2ecf20Sopenharmony_ciextern bool aa_g_audit_header; 378c2ecf20Sopenharmony_ciextern bool aa_g_debug; 388c2ecf20Sopenharmony_ciextern bool aa_g_hash_policy; 398c2ecf20Sopenharmony_ciextern int aa_g_rawdata_compression_level; 408c2ecf20Sopenharmony_ciextern bool aa_g_lock_policy; 418c2ecf20Sopenharmony_ciextern bool aa_g_logsyscall; 428c2ecf20Sopenharmony_ciextern bool aa_g_paranoid_load; 438c2ecf20Sopenharmony_ciextern unsigned int aa_g_path_max; 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#endif /* __APPARMOR_H */ 46