[apparmor] [PATCH] Convert aa-status to Python
Marc Deslauriers
marc.deslauriers at canonical.com
Thu May 26 20:21:20 UTC 2011
On Thu, 2011-05-26 at 13:13 -0700, Seth Arnold wrote:
> On Thu, May 26, 2011 at 1:07 PM, Marc Deslauriers
> <marc.deslauriers at canonical.com> wrote:
> > Hmm..I'm not quite sure where this is used during boot. Is it in
> > SUSE-specific init scripts?
>
> Check out /etc/init/mysql.conf on an Ubuntu 10.10 system. Not sure if
> this has survived to 11.04 or not, I like to let others test large
> upgrades for me. :)
>
> pre-start script
> #Sanity checks
> [ -r $HOME/my.cnf ]
> [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld
> # Load AppArmor profile
> if aa-status --enabled 2>/dev/null; then
> apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld || true
> fi
> LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1
> | awk '{ exit ($4<4096) }'
> end script
>
D'Oh! :)
Yes, this went away in 11.04. There is now a proper upstart helper to
deal with this, and it doesn't use aa-status anymore.
Marc.
More information about the AppArmor
mailing list