xref: /linux/security/apparmor/include/secid.h (revision 121d4a91e3c12ddfb167edafb9aa64cc5cc3a406)
1*121d4a91SJohn Johansen /*
2*121d4a91SJohn Johansen  * AppArmor security module
3*121d4a91SJohn Johansen  *
4*121d4a91SJohn Johansen  * This file contains AppArmor security identifier (secid) definitions
5*121d4a91SJohn Johansen  *
6*121d4a91SJohn Johansen  * Copyright 2009-2010 Canonical Ltd.
7*121d4a91SJohn Johansen  *
8*121d4a91SJohn Johansen  * This program is free software; you can redistribute it and/or
9*121d4a91SJohn Johansen  * modify it under the terms of the GNU General Public License as
10*121d4a91SJohn Johansen  * published by the Free Software Foundation, version 2 of the
11*121d4a91SJohn Johansen  * License.
12*121d4a91SJohn Johansen  */
13*121d4a91SJohn Johansen 
14*121d4a91SJohn Johansen #ifndef __AA_SECID_H
15*121d4a91SJohn Johansen #define __AA_SECID_H
16*121d4a91SJohn Johansen 
17*121d4a91SJohn Johansen #include <linux/types.h>
18*121d4a91SJohn Johansen 
19*121d4a91SJohn Johansen /* secid value that will not be allocated */
20*121d4a91SJohn Johansen #define AA_SECID_INVALID 0
21*121d4a91SJohn Johansen #define AA_SECID_ALLOC AA_SECID_INVALID
22*121d4a91SJohn Johansen 
23*121d4a91SJohn Johansen u32 aa_alloc_secid(void);
24*121d4a91SJohn Johansen void aa_free_secid(u32 secid);
25*121d4a91SJohn Johansen 
26*121d4a91SJohn Johansen #endif /* __AA_SECID_H */
27