linux/security/apparmor/include
John Johansen 796c146fa6 apparmor: split xxx_in_ns into its two separate semantic use cases
This patch doesn't change current functionality, it switches the two
uses of the in_ns fns and macros into the two semantically different
cases they are used for.

xxx_in_scope for checking mediation interaction between profiles
xxx_in_view to determine which profiles are visible.The scope will
always be a subset of the view as profiles that can not see each
other can not interact.

The split can not be completely done for label_match because it has to
distinct uses matching permission against label in scope, and checking
if a transition to a profile is allowed. The transition to a profile
can include profiles that are in view but not in scope, so retain this
distinction as a parameter.

While at the moment the two uses are very similar, in the future there
will be additional differences. So make sure the semantics differences
are present in the code.

Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
2026-01-29 01:27:55 -08:00
..
af_unix.h apparmor: fix regression in fs based unix sockets when using old abi 2025-07-15 22:39:43 -07:00
apparmor.h apparmor: add fine grained af_unix mediation 2025-01-18 06:47:12 -08:00
apparmorfs.h apparmor: move initcalls to the LSM framework 2025-10-22 19:24:27 -04:00
audit.h apparmor: add support loading per permission tagging 2026-01-29 01:27:47 -08:00
capability.h apparmor: add ability to mediate caps with policy state machine 2025-01-18 06:47:12 -08:00
cred.h apparmor: refactor/cleanup cred helper fns. 2026-01-29 01:27:54 -08:00
crypto.h apparmor: move initcalls to the LSM framework 2025-10-22 19:24:27 -04:00
domain.h apparmor: extend permissions to support a label and tag string 2022-10-03 14:49:03 -07:00
file.h apparmor: fix some kernel-doc issues in header files 2025-05-17 01:52:25 -07:00
ipc.h apparmor: add support for profiles to define the kill signal 2025-01-18 06:47:12 -08:00
label.h apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00
lib.h apparmor: split xxx_in_ns into its two separate semantic use cases 2026-01-29 01:27:55 -08:00
match.h apparmor: Fix & Optimize table creation from possibly unaligned memory 2026-01-22 04:52:25 -08:00
mount.h apparmor: Fix regression in mount mediation 2023-10-18 16:01:32 -07:00
net.h apparmor: make sure unix socket labeling is correctly updated. 2025-07-20 02:19:27 -07:00
path.h apparmor: add fine grained af_unix mediation 2025-01-18 06:47:12 -08:00
perms.h apparmor: fix some kernel-doc issues in header files 2025-05-17 01:52:25 -07:00
policy.h apparmor: add support loading per permission tagging 2026-01-29 01:27:47 -08:00
policy_compat.h apparmor: isolate policy backwards compatibility to its own file 2022-10-03 14:49:03 -07:00
policy_ns.h apparmor: remove unused functions in policy_ns.c/.h 2023-10-15 21:44:31 -07:00
policy_unpack.h + Features 2022-12-14 13:42:09 -08:00
procattr.h AppArmor: Add selfattr hooks 2023-11-12 22:54:42 -05:00
resource.h apparmor: pass cred through to audit info. 2023-10-18 15:30:38 -07:00
secid.h lsm: replace context+len with lsm_context 2024-12-04 14:42:31 -05:00
sig_names.h apparmor: add support for profiles to define the kill signal 2025-01-18 06:47:12 -08:00
signal.h apparmor: add support for profiles to define the kill signal 2025-01-18 06:47:12 -08:00
task.h apparmor: add user namespace creation mediation 2023-10-18 15:49:02 -07:00