Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * AppArmor security module
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * This file contains AppArmor basic path manipulation function definitions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Copyright (C) 1998-2008 Novell/SUSE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * Copyright 2009-2010 Canonical Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef __AA_PATH_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define __AA_PATH_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) enum path_flags {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	PATH_IS_DIR = 0x1,		/* path is a directory */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	PATH_CONNECT_PATH = 0x4,	/* connect disconnected paths to / */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	PATH_CHROOT_REL = 0x8,		/* do path lookup relative to chroot */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	PATH_CHROOT_NSCONNECT = 0x10,	/* connect paths that are at ns root */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	PATH_DELEGATE_DELETED = 0x08000, /* delegate deleted files */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	PATH_MEDIATE_DELETED = 0x10000,	 /* mediate deleted paths */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) int aa_path_name(const struct path *path, int flags, char *buffer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 		 const char **name, const char **info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		 const char *disconnected);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define IN_ATOMIC true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) char *aa_get_buffer(bool in_atomic);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) void aa_put_buffer(char *buf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #endif /* __AA_PATH_H */