reload default apparmor profile if it is unloaded

Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
This commit is contained in:
Xianglin Gao 2016-12-07 19:32:50 +08:00
parent 8547c0dbd9
commit cb5ed1ce9d
8 changed files with 95 additions and 48 deletions

View file

@ -299,7 +299,7 @@ func New(config *Config) (*Server, error) {
s.seccompProfile = seccompConfig
if s.appArmorEnabled {
apparmor.InstallDefaultAppArmorProfile()
apparmor.LoadDefaultAppArmorProfile()
}
s.appArmorProfile = config.ApparmorProfile