You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc -c -fPIC -std=c99 -g -Wall -D_BSD_SOURCE EasySandbox.c
In file included from /usr/include/unistd.h:25,
from EasySandbox.c:40:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -c -fPIC -std=c99 -g -Wall -D_BSD_SOURCE malloc.c
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from malloc.c:24:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -shared -o EasySandbox.so EasySandbox.o malloc.o -ldl
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test01 t/test01.c -lm
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test02 t/test02.c -lm
In file included from /usr/include/unistd.h:25,
from t/test02.c:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test03 t/test03.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from t/test03.c:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test04 t/test04.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from t/test04.c:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test05 t/test05.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from t/test05.c:5:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test06 t/test06.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from t/test06.c:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test07 t/test07.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from t/test07.c:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test08 t/test08.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from t/test08.c:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
g++ -g -Wall -D_BSD_SOURCE -o t/test09 t/test09.cpp -lm
In file included from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/c++config.h:524,
from /usr/local/include/c++/9.1.0/iostream:38,
from t/test09.cpp:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
g++ -g -Wall -D_BSD_SOURCE -o t/test10 t/test10.cpp -lm
In file included from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/c++config.h:524,
from /usr/local/include/c++/9.1.0/iostream:38,
from t/test10.cpp:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
g++ -g -Wall -D_BSD_SOURCE -o t/test11 t/test11.cpp -lm
In file included from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/c++config.h:524,
from /usr/local/include/c++/9.1.0/iostream:38,
from t/test11.cpp:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
g++ -g -Wall -D_BSD_SOURCE -o t/test12 t/test12.cpp -lm
In file included from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/c++config.h:524,
from /usr/local/include/c++/9.1.0/iostream:38,
from t/test12.cpp:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test13 t/test13.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from t/test13.c:3:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
g++ -g -Wall -D_BSD_SOURCE -o t/test14 t/test14.cpp -lm
In file included from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/c++config.h:524,
from /usr/local/include/c++/9.1.0/iostream:38,
from t/test14.cpp:4:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"| ^~~~~~~
gcc -std=c99 -g -Wall -D_BSD_SOURCE -o t/test15 t/test15.c -lm
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from t/test15.c:1:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 |# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
Compile successfully finishes however without any errors (only warnings present). But the tests don't pass. The following is the log when running the tests:
Seems like newer libseccomp versions start to freak out the sandbox as a whole. Testing on a CentOS 7 server with libseccomp-2.3.1 installed doesn't throw any errors and all tests pass. Anything newer then libseccomp-2.4 throws an error. Trying my own custom sandbox also throws the "Bad System Call" error on newer libseccomp, but functions perfectly on older.
Downgrading the linux kernel is currently the best solution for the current state of EasySandbox.
Lastly, the deprecation warning during compilation can be safely ignored on newer glibc.
gcc version:
9.1.0
(have tried12.x
)g++ version:
9.1.0
(have tried12.x
)make version:
4.4.1
(have tried3.82
)Logs when compiling initially using make:
Compile successfully finishes however without any errors (only warnings present). But the tests don't pass. The following is the log when running the tests:
The text was updated successfully, but these errors were encountered: