mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-01 22:33:30 +00:00
apparmor: actually enable suspend for AppArmor
The original patches didn't pass down the "suspend" boolean into write_aa_policy() and so suspend never really happened. Pass it down. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
ea1c891476
commit
dc4c3cd48b
1 changed files with 1 additions and 1 deletions
|
|
@ -585,7 +585,7 @@ static int do_suspend(bool suspend)
|
|||
AaNamespace *ns = namespaces[i];
|
||||
char path[PATH_MAX] = AA_SECURITYFS_PATH "/policy";
|
||||
|
||||
if (write_aa_policy(ns, path, strlen(path), opts.lsm_profile, false) < 0)
|
||||
if (write_aa_policy(ns, path, strlen(path), opts.lsm_profile, suspend) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue