hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/security/apparmor/include/secid.h
....@@ -1,14 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * AppArmor security module
34 *
45 * This file contains AppArmor security identifier (secid) definitions
56 *
67 * 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.
128 */
139
1410 #ifndef __AA_SECID_H
....@@ -22,6 +18,9 @@
2218 /* secid value that will not be allocated */
2319 #define AA_SECID_INVALID 0
2420
21
+/* secid value that matches any other secid */
22
+#define AA_SECID_WILDCARD 1
23
+
2524 struct aa_label *aa_secid_to_label(u32 secid);
2625 int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen);
2726 int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid);