Path: blob/master/security/apparmor/include/path.h
10817 views
/*1* AppArmor security module2*3* This file contains AppArmor basic path manipulation function definitions.4*5* Copyright (C) 1998-2008 Novell/SUSE6* Copyright 2009-2010 Canonical Ltd.7*8* This program is free software; you can redistribute it and/or9* modify it under the terms of the GNU General Public License as10* published by the Free Software Foundation, version 2 of the11* License.12*/1314#ifndef __AA_PATH_H15#define __AA_PATH_H161718enum path_flags {19PATH_IS_DIR = 0x1, /* path is a directory */20PATH_CONNECT_PATH = 0x4, /* connect disconnected paths to / */21PATH_CHROOT_REL = 0x8, /* do path lookup relative to chroot */22PATH_CHROOT_NSCONNECT = 0x10, /* connect paths that are at ns root */2324PATH_DELEGATE_DELETED = 0x08000, /* delegate deleted files */25PATH_MEDIATE_DELETED = 0x10000, /* mediate deleted paths */26};2728int aa_get_name(struct path *path, int flags, char **buffer, const char **name);2930#endif /* __AA_PATH_H */313233