Linux Commands Examples

A great documentation place for Linux commands

dh_apparmor

reload AppArmor profile and create local include

Synopsis

dh_apparmor --profile-name=profilename


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
override_dh_installinit:
dh_apparmor -psssd --profile-name=usr.sbin.sssd
dh_installinit --error-handler=invoke_failure

description

dh_apparmor is a debhelper program that will create/remove the /etc/apparmor.d/local/<profilename> include file in maintainer scripts. It also reloads the specified AppArmor profile in postinst using:

apparmor_parser -r -W -T /etc/apparmor.d/<profilename>

By using ’-W -T’ we ensure that any abstraction updates are also pulled in.

options

--profile-name=<profilename>

Specify the profile name.

notes

Note that for packages that have multiple binary packages, you will want to pass ’-p<package name>’ to dh_apparmor, otherwise dh_apparmor will add AppArmor reload commands for all packages rather than just the one that ships the profile.


see also

debhelper

This program is a part of debhelper.


author

Jamie Strandboge <jamie[:at:]canonical[:dot:]com>

How can this site be more helpful to YOU ?


give  feedback