Revert currently unused by Ubuntu apparmor features that require secid
support, to enable apparmor LSM stacking with the 5.1 LSM stacking
patchset.
This reverts commit
617a629c08bfffb05249131079d9a38322902e5b.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
/* secid value that will not be allocated */
#define AA_SECID_INVALID 0
-/* secid value that matches any other secid */
-#define AA_SECID_WILDCARD 1
-
struct aa_label *aa_secid_to_label(u32 secid);
int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen);
int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid);
* secids - do not pin labels with a refcount. They rely on the label
* properly updating/freeing them
*/
-#define AA_FIRST_SECID 2
+
+#define AA_FIRST_SECID 1
static DEFINE_IDR(aa_secids);
static DEFINE_SPINLOCK(secid_lock);