]> git.proxmox.com Git - mirror_lxc.git/commitdiff
seccomp: s/SCMP_FLTATR_NEW_LISTENER/SECCOMP_FILTER_FLAG_NEW_LISTENER/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 11 Jun 2019 21:51:34 +0000 (23:51 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 11 Jun 2019 21:51:34 +0000 (23:51 +0200)
Align with upstream libseccomp.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/seccomp.c

index 5edaa780c55de2b9f6090cb017cb96aa64ac914f..d49596fdf679bb966382b21e60331450f66c2008 100644 (file)
@@ -945,12 +945,12 @@ static int parse_config_v2(FILE *f, char *line, size_t *line_bufsz, struct lxc_c
                if ((rule.action == SCMP_ACT_NOTIFY) &&
                    !conf->seccomp.notifier.wants_supervision) {
                        ret = seccomp_attr_set(conf->seccomp.seccomp_ctx,
-                                              SCMP_FLTATR_NEW_LISTENER, 1);
+                                              SECCOMP_FILTER_FLAG_NEW_LISTENER, 1);
                        if (ret)
                                goto bad_rule;
 
                        conf->seccomp.notifier.wants_supervision = true;
-                       TRACE("Set SCMP_FLTATR_NEW_LISTENER attribute");
+                       TRACE("Set SECCOMP_FILTER_FLAG_NEW_LISTENER attribute");
                }
 #endif