Size: a a a

2020 April 19

MB

Mikail Bagishov in rust_offtopic
Понятно, что можно сделать собственную песочницу, которая будет быстрее и (предположительно) безопаснее докера. Я даже делал нечто такое. Но это все равно должна быть связка chroot+cgroup+namespaces.
источник

EG

Emmanuel Goldstein in rust_offtopic
/bash
источник

R

Rextester in rust_offtopic
Ok, give me some Bash code to execute
источник

EG

Emmanuel Goldstein in rust_offtopic
Rextester
Ok, give me some Bash code to execute
ping -c 4 8.8.8.8
источник

R

Rextester in rust_offtopic
Errors:
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
Process killed, because it ran longer than 10 seconds. Is your code waiting for keyboard input which is not supplied?


Tip:
Mistake? Edit your message, I'll adjust my response.
источник

MB

Mikail Bagishov in rust_offtopic
/bash ping 127.0.0.1
источник

R

Rextester in rust_offtopic
Errors:
Process killed, because it ran longer than 10 seconds. Is your code waiting for keyboard input which is not supplied?


Result:
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.026 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.036 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.031 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.026 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.034 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.044 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=0.023 ms
64 bytes from 127.0.0.1: icmp_seq=11 ttl=64 time=0.035 ms


Tip:
Mistake? Edit your message, I'll adjust my response.
источник

EG

Emmanuel Goldstein in rust_offtopic
Сети там не быть не может
источник

MB

Mikail Bagishov in rust_offtopic
Emmanuel Goldstein
Сети там не быть не может
Кажется, что CLONE_NEWNS вырубает сеть полностью
источник

p

polunin.ai in rust_offtopic
Rextester
Errors:
Process killed, because it ran longer than 10 seconds. Is your code waiting for keyboard input which is not supplied?


Result:
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.026 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.036 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.031 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.026 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.034 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.044 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=0.023 ms
64 bytes from 127.0.0.1: icmp_seq=11 ttl=64 time=0.035 ms


Tip:
Mistake? Edit your message, I'll adjust my response.
молодец, лупбек пропинговал
источник

MB

Mikail Bagishov in rust_offtopic
polunin.ai
молодец, лупбек пропинговал
https://lwn.net/Articles/580893/

When first created, the lo loopback device in the new namespace is down, so even a loopback ping will fail:
источник

EG

Emmanuel Goldstein in rust_offtopic
Language:
bash


Source:
echo b > /proc/sysrq-trigger


Errors:
source_file.sh: line 1: /proc/sysrq-trigger: Permission denied
источник

EG

Emmanuel Goldstein in rust_offtopic
Ладно, это было маловероятно
источник

EG

Emmanuel Goldstein in rust_offtopic
/bash
источник

R

Rextester in rust_offtopic
Ok, give me some Bash code to execute
источник

EG

Emmanuel Goldstein in rust_offtopic
Rextester
Ok, give me some Bash code to execute
:(){ :|:& };:&
free -h
источник

R

Rextester in rust_offtopic
Emmanuel Goldstein
:(){ :|:& };:&
free -h
Errors:
source_file.sh: line 1: syntax error near unexpected token `{:'
source_file.sh: line 1: `:(){:|:&};:'


Tip:
Mistake? Edit your message, I'll adjust my response.
источник

R

Rextester in rust_offtopic
Emmanuel Goldstein
:(){ :|:& };:&
free -h
⌛Processing your edit...
источник

R

Rextester in rust_offtopic
Emmanuel Goldstein
:(){ :|:& };:&
free -h
Error: 400 Bad Request: message is too long
источник

p

polunin.ai in rust_offtopic
intellij как всегда
источник