[lxc-devel] [PATCH] Changed double check in if for "[x86_64]"

Thomas Lamprecht t.lamprecht at proxmox.com
Sat Jul 18 20:27:49 UTC 2015


Instead of checking if it's "[x86_64]" twice,
check for "[x86_64]" or "[amd64]"
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/lxc/seccomp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c
index 108faa0..374d54f 100644
--- a/src/lxc/seccomp.c
+++ b/src/lxc/seccomp.c
@@ -333,7 +333,7 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf)
 						goto bad;
 				}
 			} else if (strcmp(line, "[X86_64]") == 0 ||
-					strcmp(line, "[x86_64]") == 0) {
+					strcmp(line, "[amd64]") == 0) {
 				if (native_arch != lxc_seccomp_arch_amd64) {
 					cur_rule_arch = lxc_seccomp_arch_unknown;
 					continue;
-- 
2.4.5



More information about the lxc-devel mailing list