~ubuntu-branches/ubuntu/precise/tcpdump/precise-updates

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-01-05 08:21:25 UTC
  • mfrom: (7.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100105082125-ofykxjkd5adg20iu
Tags: 4.0.0-6ubuntu1
* Merge from debian testing. Remaining changes:
  - add enforcing AppArmor profile
    - create debian/usr.sbin.tcpdump
    - debian/control: suggest apparmor >= 2.3
    - debian/postrm: remove force-complain and disable links on purge
    - debian/rules: update 'binary' target to add profile
    - debian/README.Debian: give information on AppArmor
    - debian/postinst: reload tcpdump profile
    - debian/tcpdump.dirs: added back for AppArmor directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    # Reload AppArmor profile
5
5
    APP_PROFILE="/etc/apparmor.d/usr.sbin.tcpdump"
6
6
    if [ -f "$APP_PROFILE" ] && aa-status --enabled 2>/dev/null; then
7
 
        apparmor_parser -r "$APP_PROFILE" || true
 
7
        apparmor_parser -r -T -W "$APP_PROFILE" || true
8
8
    fi
9
9
fi
10
10