~cyphermox/+junk/nm-mms-support

« back to all changes in this revision

Viewing changes to debian/tests/apparmor_workaround

  • Committer: Martin Pitt
  • Date: 2013-10-25 05:38:06 UTC
  • Revision ID: martin.pitt@canonical.com-20131025053806-yvtve0vkxdcix3ir
Add debian/tests/apparmor_workaround: AppArmor currently does not allow us
to access the system D-BUS from an unshared file system. Hack the policy
to allow that until that gets fixed properly. (LP: #1244157)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
# AppArmor currently does not allow us to access the system D-BUS from an
 
5
# unshared file system. Hack the policy to allow that until that gets fixed
 
6
# properly. See https://launchpad.net/bugs/1244157
 
7
 
 
8
[ -d "$ADTTMP" ]
 
9
 
 
10
sed '/nm-dhcp-client.action {/ s/{/flags=(attach_disconnected) {/' \
 
11
    /etc/apparmor.d/sbin.dhclient > "$ADTTMP/sbin.dhclient"
 
12
apparmor_parser -Kr "$ADTTMP/sbin.dhclient"