]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
seccomp: s/n-new-privs/no-new-privs/g
author0x0916 <w@laoqinren.net>
Mon, 15 May 2017 10:03:41 +0000 (18:03 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:23:07 +0000 (17:23 -0400)
Signed-off-by: 0x0916 <w@laoqinren.net>
src/lxc/seccomp.c

index 3b4d7ed44587b1768afcb6ca18f477247849b323..7ab3e35b071982ee96341f3bdd39b715b15024c6 100644 (file)
@@ -217,7 +217,7 @@ scmp_filter_ctx get_new_ctx(enum lxc_hostarch_t n_arch, uint32_t default_policy_
                return NULL;
        }
        if (seccomp_attr_set(ctx, SCMP_FLTATR_CTL_NNP, 0)) {
-               ERROR("Failed to turn off n-new-privs.");
+               ERROR("Failed to turn off no-new-privs.");
                seccomp_release(ctx);
                return NULL;
        }
@@ -398,7 +398,7 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf)
                        return -1;
                }
                if (seccomp_attr_set(conf->seccomp_ctx, SCMP_FLTATR_CTL_NNP, 0)) {
-                       ERROR("Failed to turn off n-new-privs.");
+                       ERROR("Failed to turn off no-new-privs.");
                        return -1;
                }
 #ifdef SCMP_FLTATR_ATL_TSKIP
@@ -735,7 +735,7 @@ int lxc_read_seccomp_config(struct lxc_conf *conf)
        check_seccomp_attr_set = seccomp_attr_set(SCMP_FLTATR_CTL_NNP, 0);
 #endif
        if (check_seccomp_attr_set) {
-               ERROR("Failed to turn off n-new-privs.");
+               ERROR("Failed to turn off no-new-privs.");
                return -1;
        }
 #ifdef SCMP_FLTATR_ATL_TSKIP