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:
Christian Brauner 2021-06-16 15:03:35 +02:00 committed by Andrei Vagin
parent ea1c891476
commit dc4c3cd48b

View file

@ -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;
}