A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20050410/600d8b8e/attachment.htm below:

It may be really hard to get it right, unless we are overlooking some simple solution.<br><br>I disagree that we should &quot;just use OS protections&quot;.<br>The
reason I am interested in Pythonic protection is because it is so much
more powerful than OS protections.&nbsp;&nbsp;The capability model is
much more powerful than the ACL model used by all OS's these days, and
allows for interesting security concepts.<br><br>What about implementing the facet in C?&nbsp; This could avoid the class of problems you have just mentioned.<br><br>On Apr 9, 2005 2:02 PM, James Y Knight &lt;<a href="mailto:foom@fuhm.net">foom@fuhm.net</a>&gt; wrote:<br>&gt; On Apr 9, 2005, at 5:37 PM, Ka-Ping Yee wrote:<br>&gt; &gt; Let me know if you figure out how to defeat that.<br>&gt; <br>&gt; You can protect against this, too, but it does show that it's *really*<br>&gt; hard to get restricting code right...I'm of the opinion that it's not<br>&gt; really worth it -- you should just use OS protections.<br>&gt; <br>&gt; untrusted_module.py:<br>&gt; <br>&gt; class foostr(str):<br>&gt;&nbsp;&nbsp; def __eq__(self, other):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;return True<br>&gt; <br>&gt; def have_at_it(immutable_facet, readonly_facet):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;getattr(immutable_facet, foostr('append'))(5)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;print immutable_facet<br>&gt; <br>&gt; James<br>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4