/* SPDX-License-Identifier: GPL-2.0-only */1/*2* AppArmor security module3*4* This file contains AppArmor basic path manipulation function definitions.5*6* Copyright (C) 1998-2008 Novell/SUSE7* Copyright 2009-2010 Canonical Ltd.8*/910#ifndef __AA_PATH_H11#define __AA_PATH_H1213enum path_flags {14PATH_IS_DIR = 0x1, /* path is a directory */15PATH_SOCK_COND = 0x2,16PATH_CONNECT_PATH = 0x4, /* connect disconnected paths to / */17PATH_CHROOT_REL = 0x8, /* do path lookup relative to chroot */18PATH_CHROOT_NSCONNECT = 0x10, /* connect paths that are at ns root */1920PATH_DELEGATE_DELETED = 0x10000, /* delegate deleted files */21PATH_MEDIATE_DELETED = 0x20000, /* mediate deleted paths */22};2324int aa_path_name(const struct path *path, int flags, char *buffer,25const char **name, const char **info,26const char *disconnected);2728#define IN_ATOMIC true29char *aa_get_buffer(bool in_atomic);30void aa_put_buffer(char *buf);3132#endif /* __AA_PATH_H */333435