<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2238516101365346732.post650638336388347182..comments</id><updated>2009-12-12T09:39:14.365+01:00</updated><category term='sandbox'/><category term='gsoc'/><category term='DNS'/><category term='sysadmin'/><category term='ujail'/><category term='observations'/><category term='personal'/><category term='Technology'/><category term='gparted'/><category term='Debian'/><category term='GNU/Linux'/><category term='security'/><category term='update-manager'/><category term='general'/><category term='isc dhcpd'/><category term='free software'/><category term='ptrace'/><category term='everywhere'/><category term='python'/><category term='dhcpd'/><category term='Canonical'/><category term='pyttpd'/><category term='Networking'/><category term='nwu'/><category term='foss'/><category term='Ubuntu'/><category term='Android'/><category term='NetworkManager'/><category term='argvalidate'/><category term='Maemo'/><title type='text'>Comments on tech &amp;amp; sp: ujail: use cases, FAQs, part 1 &amp; proof of concept,...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techandsp.blogspot.com/feeds/650638336388347182/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html'/><author><name>Stephan Peijnik</name><uri>https://profiles.google.com/109766633501211556199</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-b4QalsnoeQw/AAAAAAAAAAI/AAAAAAAAAHo/lWUKr4oXXrU/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2238516101365346732.post-3723271438335670755</id><published>2009-12-12T09:39:14.365+01:00</published><updated>2009-12-12T09:39:14.365+01:00</updated><title type='text'>@lamby:

Thanks for the hint. This is actually sim...</title><content type='html'>@lamby:&lt;br /&gt;&lt;br /&gt;Thanks for the hint. This is actually similar to what I am working on right now.&lt;br /&gt;&lt;br /&gt;@lindi&lt;br /&gt;&lt;br /&gt;Without having had a look at the exact details plash seems to rely on software using the C-libraries functions for accessing syscalls instead of calling them directly. I have not yet tried it myself, but if my assumption is correct limitations could be worked around by doing a syscall directly. With a chroot in place and the &amp;quot;iptables tricks&amp;quot; (haven&amp;#39;t looked at them) it is possible that plash provides a similar level of security though.&lt;br /&gt;ujail is not about protecting the system from bugs in syscall implementations, but rather providing a secure sandboxing environment. &lt;br /&gt;&lt;br /&gt;On your note about subterfugue: according to what looks like its official website it has been unmaintained since 2001, so it&amp;#39;s probably not an option.&lt;br /&gt;&lt;br /&gt;@3jAmY5a7:&lt;br /&gt;&lt;br /&gt;Yes, this should be possible to do with ujail, once I get the code ready (which is likely to take some time).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/3723271438335670755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/3723271438335670755'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html?showComment=1260607154365#c3723271438335670755' title=''/><author><name>sp</name><uri>http://www.blogger.com/profile/10693058812548733549</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_Aw-AgPpRjjA/Svh1RWGdS8I/AAAAAAAAAAM/3dMoZVQCHKI/S220/sp_hackergotchi2_85x85.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html' ref='tag:blogger.com,1999:blog-2238516101365346732.post-650638336388347182' source='http://www.blogger.com/feeds/2238516101365346732/posts/default/650638336388347182' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1654583794'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 12, 2009 9:39 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2238516101365346732.post-2098109684379048741</id><published>2009-12-11T00:35:14.000+01:00</published><updated>2009-12-11T00:35:14.000+01:00</updated><title type='text'>3jAmY5a7: you can easily do that with subterfugue....</title><content type='html'>3jAmY5a7: you can easily do that with subterfugue. It lets you write python code that can install handlers for syscalls.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/2098109684379048741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/2098109684379048741'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html?showComment=1260488114000#c2098109684379048741' title=''/><author><name>lindi</name><uri>http://lindi.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html' ref='tag:blogger.com,1999:blog-2238516101365346732.post-650638336388347182' source='http://www.blogger.com/feeds/2238516101365346732/posts/default/650638336388347182' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-199127326'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 11, 2009 12:35 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2238516101365346732.post-3802736549145254575</id><published>2009-12-11T00:05:31.204+01:00</published><updated>2009-12-11T00:05:31.204+01:00</updated><title type='text'>Here is another use-case to consider: Sometimes I ...</title><content type='html'>Here is another use-case to consider: Sometimes I use LD_PRELOAD tricks to change the behavior of a closed-source process, e.g. if the process creates and then deletes a file, I can replace the unlink operation so that the deleted file gets moved to a temporary directory instead.  This only works if they use shared libraries, while replacing the unlink system call would instead let me easily do this to any binary.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/3802736549145254575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/3802736549145254575'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html?showComment=1260486331204#c3802736549145254575' title=''/><author><name>3jAmY5a7</name><uri>http://openid.anonymity.com/3jAmY5a7</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html' ref='tag:blogger.com,1999:blog-2238516101365346732.post-650638336388347182' source='http://www.blogger.com/feeds/2238516101365346732/posts/default/650638336388347182' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-513215550'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 11, 2009 12:05 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2238516101365346732.post-5412071307401976168</id><published>2009-12-10T10:25:01.379+01:00</published><updated>2009-12-10T10:25:01.379+01:00</updated><title type='text'>@sp: Do you mean that a process could escape plash...</title><content type='html'>@sp: Do you mean that a process could escape plash by making syscall directly? I thought the new UID/GID, chroot and iptables tricks were there to block file and network access. Of course you can try to exploit unknown linux bugs but can ujail really do much about those other than block some seldomly used syscalls completely?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/5412071307401976168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/5412071307401976168'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html?showComment=1260437101379#c5412071307401976168' title=''/><author><name>lindi</name><uri>http://lindi.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html' ref='tag:blogger.com,1999:blog-2238516101365346732.post-650638336388347182' source='http://www.blogger.com/feeds/2238516101365346732/posts/default/650638336388347182' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-199127326'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 10, 2009 10:25 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2238516101365346732.post-8311853495672233931</id><published>2009-12-09T13:18:44.976+01:00</published><updated>2009-12-09T13:18:44.976+01:00</updated><title type='text'>Geordi is an IRC bot that uses a ptrace-based supe...</title><content type='html'>Geordi is an IRC bot that uses a ptrace-based supervisor to compile execute arbitrary code. The code is written in literate Haskell so could provide a good example of what you want to do. Alternatively, the supervisor section can even be used outside of IRC - indeed, codepad.org runs on precisely this code.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/8311853495672233931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/8311853495672233931'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html?showComment=1260361124976#c8311853495672233931' title=''/><author><name>lamby</name><uri>http://www.blogger.com/profile/00824098599241357355</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html' ref='tag:blogger.com,1999:blog-2238516101365346732.post-650638336388347182' source='http://www.blogger.com/feeds/2238516101365346732/posts/default/650638336388347182' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2013306206'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 9, 2009 1:18 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2238516101365346732.post-3654134462955648936</id><published>2009-12-09T12:38:00.588+01:00</published><updated>2009-12-09T12:38:00.588+01:00</updated><title type='text'>@lindi:

I totally agree with you that this approa...</title><content type='html'>@lindi:&lt;br /&gt;&lt;br /&gt;I totally agree with you that this approach is possibly faster than ujail. However, this can also be worked around by injecting code that invokes the syscalls directly. I also agree that this is hard to achieve from within python code, but not impossible, at least in theory.&lt;br /&gt;&lt;br /&gt;Also, ujail should be a lot more flexible, as it applies to *any* binary, including the Python interpreter (and Perl, and machine-native code, and ...).&lt;br /&gt;&lt;br /&gt;I will consider adding a comparison to plash the next time I update the FAQ.&lt;br /&gt;&lt;br /&gt;Thanks for your input!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/3654134462955648936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/3654134462955648936'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html?showComment=1260358680588#c3654134462955648936' title=''/><author><name>sp</name><uri>http://www.blogger.com/profile/10693058812548733549</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_Aw-AgPpRjjA/Svh1RWGdS8I/AAAAAAAAAAM/3dMoZVQCHKI/S220/sp_hackergotchi2_85x85.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html' ref='tag:blogger.com,1999:blog-2238516101365346732.post-650638336388347182' source='http://www.blogger.com/feeds/2238516101365346732/posts/default/650638336388347182' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1654583794'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 9, 2009 12:38 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2238516101365346732.post-7775645828698930490</id><published>2009-12-09T11:57:17.286+01:00</published><updated>2009-12-09T11:57:17.286+01:00</updated><title type='text'>You might want add comparison to plash to your FAQ...</title><content type='html'>You might want add comparison to plash to your FAQ. For example&lt;br /&gt;&lt;br /&gt;python foo.py test1.txt test2.txt&lt;br /&gt;&lt;br /&gt;in pola-shell will let foo.py only read the files test1.txt and test2.txt (There&amp;#39;s a lot more syntax to specify what files can be written to).&lt;br /&gt;&lt;br /&gt;Afaik plash works using a chroot and a modified glibc that can talk to the outside world using a unix socket. Via this unix socket it can prompt for my permissions and also ask the helper to open file descriptors for it, the file descriptors can then be passed via the unix socket so that they can be used in side the chroot.&lt;br /&gt;&lt;br /&gt;Very cool and faster than tracing every syscall.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/7775645828698930490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2238516101365346732/650638336388347182/comments/default/7775645828698930490'/><link rel='alternate' type='text/html' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html?showComment=1260356237286#c7775645828698930490' title=''/><author><name>lindi</name><uri>http://lindi.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://techandsp.blogspot.com/2009/12/ujail-use-cases-faqs-part-1-proof-of.html' ref='tag:blogger.com,1999:blog-2238516101365346732.post-650638336388347182' source='http://www.blogger.com/feeds/2238516101365346732/posts/default/650638336388347182' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-199127326'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 9, 2009 11:57 AM'/></entry></feed>
