{"id":256037,"date":"2015-04-26T20:29:01","date_gmt":"2015-04-26T16:29:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=256037"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=256037","title":{"rendered":"\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0432 linux, linux \u0432 egg, egg \u0432 python"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"http:\/\/avatar.csdn.net\/blogpic\/20131225142236562.jpg\" alt=\"tux in egg in python\"\/><\/p>\n<p>  Hello, {{username}}<\/p>\n<p>  \u042f DevOps \u0438 \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u043b\u044e Linux. \u041f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u0447\u0442\u043e \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u0432\u044f\u0437\u043a\u043e\u0439 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043c\u043e\u0433 \u043d\u0435 \u043f\u043e\u043b\u044e\u0431\u0438\u0442\u044c LinuX Containers (\u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e BSD \u0438 Solaris \u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0434\u0443\u044e\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0441\u0432\u043e\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439).<\/p>\n<p>  \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0431\u0438\u0437\u043d\u0435\u0441 \u0442\u043e\u0436\u0435 \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u0441\u0442\u0430\u043b\u0438 \u0440\u0430\u0441\u0442\u0438 \u0438 \u043c\u043d\u043e\u0436\u0438\u0442\u044c\u0441\u044f: <a href=\"https:\/\/github.com\/docker\/docker\">docker <\/a>, <a href=\"https:\/\/github.com\/coreos\/rkt\">rocket<\/a>, <a href=\"https:\/\/github.com\/tailhook\/vagga\">vagga<\/a>, <a href=\"https:\/\/linuxcontainers.org\">lxc<\/a>, <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Systemd-nspawn\">systemd-nspawn<\/a>, etc\u2026<\/p>\n<p>  Docker \u0441\u0442\u0430\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c \u0434\u0435-\u0444\u0430\u043a\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u041d\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0434\u0435\u043c\u043e\u043d \u0434\u043e\u043a\u0435\u0440\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0442 root, \u0438, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044d\u0442\u043e \u043c\u0438\u043d\u0443\u0441 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (<a href=\"https:\/\/fosterelli.co\/privilege-escalation-via-docker.html\">\u041f\u0440\u0443\u0444<\/a>).<\/p>\n<p>  Rocket \u0438 vagga \u043f\u043e\u0448\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0435\u043c, \u0438 \u043f\u0443\u0442\u044c \u044d\u0442\u043e\u0442 \u043d\u043e\u0441\u0438\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 unprivileged containers. \u0412\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b root \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u043d\u043e\u0432\u044b\u0445 namespaces, \u0438 \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043b\u043e\u0449\u0430\u0434\u043e\u043a \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041d\u043e \u0432\u043e \u0432\u0441\u0435\u0445 \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u043e\u043d\u0438 \u0432\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c c, go \u0438 rust, \u0430 \u044f \u043b\u044e\u0431\u043b\u044e python \u0438 \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0438\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435. \u0421\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0431\u0438\u0434\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0435\u0441\u0435\u043b\u044c\u0435.<\/p>\n<p>  \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0432\u0430\u0441 \u0436\u0434\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 \u043d\u043e\u0432\u044b\u0445 <a href=\"http:\/\/man7.org\/linux\/man-pages\/man7\/user_namespaces.7.html\">linux user namespaces<\/a>:<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><a href=\"https:\/\/pypi.python.org\/pypi\/pyspaces\">Pyspaces<\/a><\/h4>\n<p>  <i>\u0414\u0435\u0442\u043a\u0430, \u0422\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u0441\u043c\u043e\u0441<\/i><\/p>\n<h5><b>Goals<\/b><\/h5>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 linux namespaces \u0438\u0437 python:  <\/p>\n<ul>\n<li>\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/pypi.python.org\/pypi\/asylum\/0.4.1\">asylum<\/a> \u2014 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u0435\u0440\u0442\u0432\u044b\u043c \u0438 \u0445\u043e\u0441\u0442\u0438\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0433\u0434\u0435 <\/li>\n<li>\u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/pypi.python.org\/pypi\/libvirt-python\/1.2.13\">python-libvirt<\/a> \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 <\/li>\n<li>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430 c, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442 vagga \u0438 lxc<\/li>\n<li>\u0438\u043b\u0438 \u0434\u0435\u0440\u0433\u0430\u0442\u044c glibc \u0432\u044b\u0437\u043e\u0432\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ctypes<\/li>\n<li>\u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f subprocess.Popen<\/li>\n<\/ul>\n<p>  \u042f \u0445\u043e\u0447\u0443 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e: \u044f \u0445\u043e\u0447\u0443 \u0441\u043e\u0437\u0434\u0430\u0442\u044c native python bindings \u043a \u0431\u0438\u043b\u0431\u0438\u043e\u0442\u0435\u043a\u0435 glibc \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043a\u0430\u043a \u0432 multiprocessing.Process. \u0418 \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0446\u0435\u043b\u0435\u0439:  <\/p>\n<ul>\n<li>\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c linux<\/li>\n<li>\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c python<\/li>\n<li>\u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e open source \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/li>\n<li>\u043f\u0440\u043e\u0441\u043b\u0430\u0432\u0438\u0442\u044c\u0441\u044f<\/li>\n<li>\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u0438 \u0434\u0435\u0432\u0443\u0448\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u0431\u043e\u043d\u0443\u0441\u043e\u043c<\/li>\n<\/ul>\n<p>  \u0417\u042b: \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/github.com\/zalando\/python-nsenter\">python-nsenter<\/a> \u2014 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u0434\u043e\u0440\u043e\u0432\u043e!<\/p>\n<h5><b>Example<\/b><\/h5>\n<p>  <\/p>\n<pre><code class=\"python\">import os from pyspaces import Container   def execute(argv):     os.execvp(argv[0], argv)  cmd = &quot;mount -t proc proc \/proc; ps ax&quot; c = Container(target=execute, args=(('bash', '-c', cmd),),               uid_map='0 1000 1',               newpid=True, newuser=True, newns=True               ) c.start() print(&quot;PID of child created by clone() is %ld\\n&quot; % c.pid) c.join() print(&quot;Child returned: pid %s, status %s&quot; % (c.pid, c.exitcode)) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">PID of child created by clone() is 15978  PID TTY      STAT   TIME COMMAND 1   pts\/19   S+     0:00 bash -c mount -t proc proc \/proc; ps ax 3   pts\/19   R+     0:00 ps ax  Child returned: pid 15978, status 0 <\/code><\/pre>\n<p>  <\/p>\n<h5><b>CLI<\/b><\/h5>\n<p>  <\/p>\n<pre><code class=\"bash\">space -v execute --pid --fs --user --uid '0 1000 1' bash -c 'mount -t proc \/proc; ps ax' space chroot --pid --uid '0 1000 1' ~\/.local\/share\/lxc\/ubuntu\/rootfs\/ \/bin\/ls \/home\/ <\/code><\/pre>\n<p>  <\/p>\n<h5><b>TODO<\/b><\/h5>\n<p>  <\/p>\n<ol>\n<li> [x] clone &#038; Container<\/li>\n<li> [x] CLI<\/li>\n<li> [x] Chroot<\/li>\n<li> [ ] process list<\/li>\n<li> [ ] inject<\/li>\n<li> [ ] move CLI to separate package<\/li>\n<li> [ ] addons<\/li>\n<li> [ ] support for lxc, vagga, rocket, docker, etc&#8230;<\/li>\n<li> [ ] &#8230;<\/li>\n<li> [ ] one tool for rule them all!!1<\/li>\n<\/ol>\n<p>  <\/p>\n<h5><b>Links<\/b><\/h5>\n<p>  <a href=\"https:\/\/github.com\/Friz-zy\/pyspaces\"><img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/1f913cb7a82c253c105fc923a8bf6eae1046fa7f\/68747470733a2f2f7261772e6769746875622e636f6d2f6769746875622f6d656469612f6d61737465722f6f63746f636174732f626c61636b746f6361742d33322e706e67\" alt=\"github\"\/><\/a> <a href=\"https:\/\/pypi.python.org\/pypi\/pyspaces\/\"><img decoding=\"async\" src=\"https:\/\/pypip.in\/download\/pyspaces\/badge.svg\" alt=\"pypi\"\/><\/a> <a href=\"https:\/\/pyspaces.readthedocs.org\/en\/latest\/\"><img decoding=\"async\" src=\"https:\/\/readthedocs.org\/projects\/pyspaces\/badge\/\" alt=\"docs\"\/><\/a><\/p>\n<p>  \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u2014 MIT, \u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c BSD \u0438 Apache 2.0<\/p>\n<h5><b>It&#8217;s not the end<\/b><\/h5>\n<p>  \u0420\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e: \u043d\u0443\u0436\u043d\u044b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043d\u043e\u0432\u044b\u0435 \u0444\u0438\u0447\u0438 \u0438 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0435 cli. \u041e\u0442\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u043d\u043e\u043d\u0441\u0430 \u0432 \u0434\u043e\u043b\u0433\u0438\u0439 \u044f\u0449\u0438\u043a \u043f\u0440\u0435\u0440\u0432\u0430\u043b\u0438 \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 <a href=\"https:\/\/ru-ru.facebook.com\/MinskPythonMeetup\">Minsk Python Meetup<\/a>, \u0437\u0430 \u0447\u0442\u043e \u0438\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \ud83d\ude09<\/p>\n<p>  \u0418 \u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0446\u0438\u0442\u0430\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044f scipy &#038; numpy:  <\/p>\n<blockquote><p>Keys to success: Hard work \u2014 specially up front<br \/>  Often lonely \u2014 initially nobody believes in your idea more than you do. Others need some &#8216;proof&#8217; before they join you.<br \/>  The more complicated what you are doing is the lonelier it will be initially.<\/p>\n<p>  I spent 18 months not publishing papers to write NumPy<br \/>  (despite many people telling me it was foolish)<br \/>  <a href=\"https:\/\/youtu.be\/oXRvpBJ-Dkc?t=967\">Travis Oliphant<\/a>  <\/p><\/blockquote>\n<p>  \u0417\u042b: \u0432 \u0436\u0438\u0432\u0443\u044e \u0441\u043e \u043c\u043d\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0442\u0435\u043c\u0435 \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c <a href=\"https:\/\/ru-ru.facebook.com\/MinskPythonMeetup\">Minsk Python Meetup<\/a>     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/256647\/\"> http:\/\/habrahabr.ru\/post\/256647\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"http:\/\/avatar.csdn.net\/blogpic\/20131225142236562.jpg\" alt=\"tux in egg in python\"\/><\/p>\n<p>  Hello, {{username}}<\/p>\n<p>  \u042f DevOps \u0438 \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u043b\u044e Linux. \u041f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u0447\u0442\u043e \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u0432\u044f\u0437\u043a\u043e\u0439 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043c\u043e\u0433 \u043d\u0435 \u043f\u043e\u043b\u044e\u0431\u0438\u0442\u044c LinuX Containers (\u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e BSD \u0438 Solaris \u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0434\u0443\u044e\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0441\u0432\u043e\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439).<\/p>\n<p>  \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0431\u0438\u0437\u043d\u0435\u0441 \u0442\u043e\u0436\u0435 \u0443\u0432\u0438\u0434\u0435\u043b \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u0441\u0442\u0430\u043b\u0438 \u0440\u0430\u0441\u0442\u0438 \u0438 \u043c\u043d\u043e\u0436\u0438\u0442\u044c\u0441\u044f: <a href=\"https:\/\/github.com\/docker\/docker\">docker <\/a>, <a href=\"https:\/\/github.com\/coreos\/rkt\">rocket<\/a>, <a href=\"https:\/\/github.com\/tailhook\/vagga\">vagga<\/a>, <a href=\"https:\/\/linuxcontainers.org\">lxc<\/a>, <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Systemd-nspawn\">systemd-nspawn<\/a>, etc\u2026<\/p>\n<p>  Docker \u0441\u0442\u0430\u043b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c \u0434\u0435-\u0444\u0430\u043a\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u041d\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0434\u0435\u043c\u043e\u043d \u0434\u043e\u043a\u0435\u0440\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0442 root, \u0438, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044d\u0442\u043e \u043c\u0438\u043d\u0443\u0441 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (<a href=\"https:\/\/fosterelli.co\/privilege-escalation-via-docker.html\">\u041f\u0440\u0443\u0444<\/a>).<\/p>\n<p>  Rocket \u0438 vagga \u043f\u043e\u0448\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0435\u043c, \u0438 \u043f\u0443\u0442\u044c \u044d\u0442\u043e\u0442 \u043d\u043e\u0441\u0438\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 unprivileged containers. \u0412\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b root \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u043d\u043e\u0432\u044b\u0445 namespaces, \u0438 \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u043b\u043e\u0449\u0430\u0434\u043e\u043a \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041d\u043e \u0432\u043e \u0432\u0441\u0435\u0445 \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u043e\u043d\u0438 \u0432\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c c, go \u0438 rust, \u0430 \u044f \u043b\u044e\u0431\u043b\u044e python \u0438 \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0438\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435. \u0421\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0431\u0438\u0434\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0435\u0441\u0435\u043b\u044c\u0435.<\/p>\n<p>  \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0432\u0430\u0441 \u0436\u0434\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 \u043d\u043e\u0432\u044b\u0445 <a href=\"http:\/\/man7.org\/linux\/man-pages\/man7\/user_namespaces.7.html\">linux user namespaces<\/a>:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-256037","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/256037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256037"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/256037\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}