~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to debian/put-all-profiles-in-complain-mode.sh

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PROFILE_DIR="./etc/apparmor.d"
 
4
 
 
5
for f in ${PROFILE_DIR}/*
 
6
do
 
7
        [ ! -f ${f} ] && continue
 
8
        ! grep -q 'flags=(complain)' $f && sed -i 's/ {$/ flags=(complain) {/' $f
 
9
done