| 9133493a | 09-Nov-2024 |
John Johansen <[email protected]> |
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 <joh
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 <[email protected]>
show more ...
|
| 21155176 | 02-Sep-2024 |
Jinjie Ruan <[email protected]> |
apparmor: Remove unused parameter L1 in macro next_comb
In the macro definition of next_comb(), a parameter L1 is accepted, but it is not used. Hence, it should be removed.
Signed-off-by: Jinjie Ru
apparmor: Remove unused parameter L1 in macro next_comb
In the macro definition of next_comb(), a parameter L1 is accepted, but it is not used. Hence, it should be removed.
Signed-off-by: Jinjie Ruan <[email protected]> Signed-off-by: John Johansen <[email protected]>
show more ...
|
| 75535669 | 20-Sep-2024 |
Dr. David Alan Gilbert <[email protected]> |
apparmor: Remove deadcode
aa_label_audit, aa_label_find, aa_label_seq_print and aa_update_label_name were added by commit f1bd904175e8 ("apparmor: add the base fns() for domain labels") but never us
apparmor: Remove deadcode
aa_label_audit, aa_label_find, aa_label_seq_print and aa_update_label_name were added by commit f1bd904175e8 ("apparmor: add the base fns() for domain labels") but never used.
aa_profile_label_perm was added by commit 637f688dc3dc ("apparmor: switch from profiles to using labels on contexts") but never used.
aa_secid_update was added by commit c092921219d2 ("apparmor: add support for mapping secids and using secctxes") but never used.
aa_split_fqname has been unused since commit 3664268f19ea ("apparmor: add namespace lookup fns()")
aa_lookup_profile has been unused since commit 93c98a484c49 ("apparmor: move exec domain mediation to using labels")
aa_audit_perms_cb was only used by aa_profile_label_perm (see above).
All of these commits are from around 2017.
Remove them.
Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: John Johansen <[email protected]>
show more ...
|
| fa9b63ad | 09-Sep-2022 |
John Johansen <[email protected]> |
apparmor: add user namespace creation mediation
Unprivileged user namespace creation is often used as a first step in privilege escalation attacks. Instead of disabling it at the sysrq level, which
apparmor: add user namespace creation mediation
Unprivileged user namespace creation is often used as a first step in privilege escalation attacks. Instead of disabling it at the sysrq level, which blocks its legitimate use as for setting up a sandbox, allow control on a per domain basis.
This allows an admin to quickly lock down a system while also still allowing legitimate use.
Reviewed-by: Georgia Garcia <[email protected]> Signed-off-by: John Johansen <[email protected]>
show more ...
|
| efea5b0d | 07-Aug-2023 |
GONG, Ruiqi <[email protected]> |
apparmor: remove unused PROF_* macros
The last usage of PROF_{ADD,REPLACE} were removed by commit 18e99f191a8e ("apparmor: provide finer control over policy management"). So remove these two unused
apparmor: remove unused PROF_* macros
The last usage of PROF_{ADD,REPLACE} were removed by commit 18e99f191a8e ("apparmor: provide finer control over policy management"). So remove these two unused macros.
Signed-off-by: GONG, Ruiqi <[email protected]> Signed-off-by: John Johansen <[email protected]>
show more ...
|
| 980a5808 | 25-Jul-2023 |
Xiu Jianfeng <[email protected]> |
apparmor: cleanup unused functions in file.h
After changes in commit 33bf60cabcc7 ("LSM: Infrastructure management of the file security"), aa_alloc_file_ctx() and aa_free_file_ctx() are no longer us
apparmor: cleanup unused functions in file.h
After changes in commit 33bf60cabcc7 ("LSM: Infrastructure management of the file security"), aa_alloc_file_ctx() and aa_free_file_ctx() are no longer used, so remove them, and also remove aa_get_file_label() because it seems that it's never been used before.
Signed-off-by: Xiu Jianfeng <[email protected]> Signed-off-by: John Johansen <[email protected]>
show more ...
|