.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * AppArmor security module |
---|
3 | 4 | * |
---|
4 | 5 | * This file contains AppArmor security identifier (secid) definitions |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright 2009-2018 Canonical Ltd. |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public License as |
---|
10 | | - * published by the Free Software Foundation, version 2 of the |
---|
11 | | - * License. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #ifndef __AA_SECID_H |
---|
.. | .. |
---|
22 | 18 | /* secid value that will not be allocated */ |
---|
23 | 19 | #define AA_SECID_INVALID 0 |
---|
24 | 20 | |
---|
| 21 | +/* secid value that matches any other secid */ |
---|
| 22 | +#define AA_SECID_WILDCARD 1 |
---|
| 23 | + |
---|
25 | 24 | struct aa_label *aa_secid_to_label(u32 secid); |
---|
26 | 25 | int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen); |
---|
27 | 26 | int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid); |
---|