.. | .. |
---|
| 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) manipulation fns |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright 2009-2017 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 | | - * |
---|
13 | 8 | * |
---|
14 | 9 | * AppArmor allocates a unique secid for every label used. If a label |
---|
15 | 10 | * is replaced it receives the secid of the label it is replacing. |
---|
.. | .. |
---|
32 | 27 | * secids - do not pin labels with a refcount. They rely on the label |
---|
33 | 28 | * properly updating/freeing them |
---|
34 | 29 | */ |
---|
35 | | - |
---|
36 | | -#define AA_FIRST_SECID 1 |
---|
| 30 | +#define AA_FIRST_SECID 2 |
---|
37 | 31 | |
---|
38 | 32 | static DEFINE_IDR(aa_secids); |
---|
39 | 33 | static DEFINE_SPINLOCK(secid_lock); |
---|