diff options
author | John Johansen <john.johansen@canonical.com> | 2024-11-09 12:47:24 -0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2024-11-26 19:21:06 -0800 |
commit | 9133493a76d741e1ce00a140be3d2d7791ca3a04 (patch) | |
tree | 1ff372fe6738e3b4e29e33f991a94d1a4f15d90c /security | |
parent | 211551768291a9accdd0d033c6d9ff51dc4e9840 (diff) |
parser: drop dead code for XXX_comb macros
The macros for label combination XXX_comb are no longer used and there
are no plans to use them so remove the dead code.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/apparmor/include/label.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/security/apparmor/include/label.h b/security/apparmor/include/label.h index d0c1c61997c9..93290ae300bb 100644 --- a/security/apparmor/include/label.h +++ b/security/apparmor/include/label.h @@ -160,32 +160,8 @@ int aa_label_next_confined(struct aa_label *l, int i); #define label_for_each_cont(I, L, P) \ for (++((I).i); ((P) = (L)->vec[(I).i]); ++((I).i)) -#define next_comb(I, L2) \ -do { \ - (I).j++; \ - if ((I).j >= (L2)->size) { \ - (I).i++; \ - (I).j = 0; \ - } \ -} while (0) -/* for each combination of P1 in L1, and P2 in L2 */ -#define label_for_each_comb(I, L1, L2, P1, P2) \ -for ((I).i = (I).j = 0; \ - ((P1) = (L1)->vec[(I).i]) && ((P2) = (L2)->vec[(I).j]); \ - (I) = next_comb(I, L2)) - -#define fn_for_each_comb(L1, L2, P1, P2, FN) \ -({ \ - struct label_it i; \ - int __E = 0; \ - label_for_each_comb(i, (L1), (L2), (P1), (P2)) { \ - last_error(__E, (FN)); \ - } \ - __E; \ -}) - /* for each profile that is enforcing confinement in a label */ #define label_for_each_confined(I, L, P) \ for ((I).i = aa_label_next_confined((L), 0); \ |