man profile #148
Replies: 3 comments
-
First the The Debian packaging manages the profiles overwriting from the distribution profile. See debian/apparmor.d.hide. So you will not have conflict and you have nothing to do. |
Beta Was this translation helpful? Give feedback.
-
@roddhjav |
Beta Was this translation helpful? Give feedback.
-
I tried a test with a Cx rule transitioning to a named top-level profile in the same file - this on debian 12. It didn't work - but there was no message about it in the audit log. Changing to Px or making the target profile local within the calling profile both work. |
Beta Was this translation helpful? Give feedback.
-
My understanding of AppArmor is pretty rudimentary at this point...
Your man profile has many Cx transitions to either man_groff or man_filter. However, if my meager understanding of AppArmor is correct, those profiles are not its children. They are defined in the same file, but outside the scope of the primary man profile without "//" qualifiers on their names, hence global. How does this work? Aren't man_groff and man_filter only reachable by Px transitions?
Also, what should users of this project do to segregate profiles that are packaged with their distro from the ones you provide? I'm using debian, which has a usr.bin.man profile that differs from yours. The packaged debian usr.bin.man profile appears to use stacking ("&" transitions), but has a similar Cx transition issue as your man profile which doesn't use stacking. Maybe both are broken because of the Cx transitions with no matching children? But, even if they both work, do I backup my distros provided profiles first and remove them from /etc/apparmor.d prior to installing yours? Or do you use profile namespaces somehow to keep them separate?
Beta Was this translation helpful? Give feedback.
All reactions