2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

Update apparmor_kernel_development_guide

John Johansen
2018-09-28 13:36:58 +00:00
parent 1858e9355f
commit 1230f33b10

@@ -1,4 +1,20 @@
layout
# Layout
AppArmor is largely self contained in
- security/apparmor
aa_ : prefix is used to namespace apparmor fns that are visible.
__XXX: underscores indicates fn needs to be used within locking or other special conditions
AA_BUG(): is used in new code to check (when debug is one) and document preconditions.
- lsm.c: LSM hook registration, base hook fns used in the registration and general module init. Base hook fns should be generally be static and in lsm.c
- match.c & include/match.h: state machine
- policy_namespace.c: apparmor policy namespaces, not other system namespaces
- foo
lsm.c