Cross Reference: lxc-apparmor-load
xref: /lxc/config/init/systemd/lxc-apparmor-load
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Download
  • only in ./
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pitt#!/bin/sh
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pitt# lxc-apparmor-load: Load AppArmor profiles, if supported by the system
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pitt
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pittset -eu
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pitt
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pitt# don't load profiles if mount mediation is not supported
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin PittSYSF=/sys/kernel/security/apparmor/features/mount/mask
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pittif [ -f $SYSF ]; then
580f58c79ba1a1ce18d7628991f7ed3ec6956772Martin Pitt if [ -x /lib/apparmor/profile-load ]; then
580f58c79ba1a1ce18d7628991f7ed3ec6956772Martin Pitt /lib/apparmor/profile-load usr.bin.lxc-start
580f58c79ba1a1ce18d7628991f7ed3ec6956772Martin Pitt /lib/apparmor/profile-load lxc-containers
d2111444dddddb706c29e4f2f46047dfca8c59ceStéphane Graber elif [ -x /lib/init/apparmor-profile-load ]; then
d2111444dddddb706c29e4f2f46047dfca8c59ceStéphane Graber /lib/init/apparmor-profile-load usr.bin.lxc-start
d2111444dddddb706c29e4f2f46047dfca8c59ceStéphane Graber /lib/init/apparmor-profile-load lxc-containers
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pitt fi
2b24e2ff84c03a1e049449127958df8dc16a74fdMartin Pittfi

Indexes created Tue Jul 24 14:28:13 CEST 2018