]> mj.ucw.cz Git - moe.git/commitdiff
Box: Allow the arch_prctl syscall on amd64
authorMartin Mares <mj@ucw.cz>
Sat, 17 Jul 2010 23:52:00 +0000 (01:52 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Jul 2010 23:52:00 +0000 (01:52 +0200)
It is needed by new versions of glibc.

box/box.c

index 0788ac4b51ec54b3484b054d5b9ac67bef42e06d..7b670a256f4e5b1bb3ac4aac705f015dd3463577 100644 (file)
--- a/box/box.c
+++ b/box/box.c
@@ -292,7 +292,9 @@ static unsigned char syscall_action[NUM_ACTIONS] = {
     S(get_thread_area) = A_YES,
     S(set_tid_address) = A_YES,
     S(exit_group) = A_YES | A_SAMPLE_MEM,
-#ifndef CONFIG_BOX_USER_AMD64
+#ifdef CONFIG_BOX_USER_AMD64
+    S(arch_prctl) = A_YES,
+#else
     S(oldfstat) = A_YES,
     S(ftruncate64) = A_YES,
     S(_llseek) = A_YES,