~vorlon/ubuntu/precise/upstart/lp.876626

« back to all changes in this revision

Viewing changes to debian/apparmor-profile-load

  • Committer: Serge Hallyn
  • Date: 2012-04-10 19:56:31 UTC
  • Revision ID: serge.hallyn@canonical.com-20120410195631-j8eb4xznmnnf7oek
debian/apparmor-profile-load: don't run in a container.  This can hopefully
be removed in precise, after stacked profiles are supported.  (LP: #978297)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
[ -z "$1" ]                  && exit 1 # require a profile name
7
7
 
 
8
# do not load in a container
 
9
[ -x /bin/running-in-container ] && /bin/running-in-container && exit 0
 
10
 
8
11
[ -d /rofs/etc/apparmor.d ]  && exit 0 # do not load if running liveCD
9
12
 
10
13
profile=/etc/apparmor.d/"$1"