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/20060628/42d76a73/attachment.htm below:

<br><br><div><span class="gmail_quote">On 6/28/06, <b class="gmail_sendername">Guido van Rossum</b> &lt;<a href="mailto:guido@python.org">guido@python.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6/28/06, Jim Jewett &lt;<a href="mailto:jimjjewett@gmail.com">jimjjewett@gmail.com</a>&gt; wrote:<br>&gt; On 6/27/06, Neal Norwitz &lt;<a href="mailto:nnorwitz@gmail.com">nnorwitz@gmail.com</a>&gt; wrote:<br>&gt; &gt; On 6/27/06, Brett Cannon &lt;
<a href="mailto:brett@python.org">brett@python.org</a>&gt; wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; (5)&nbsp;&nbsp;I think file creation/writing should be capped rather than<br>&gt; &gt; &gt; &gt; binary; it is reasonable to say &quot;You can create a single temp file up
<br>&gt; &gt; &gt; &gt; to 4K&quot; or &quot;You can create files, but not more than 20Meg total&quot;.<br>&gt;<br>&gt; &gt; &gt; That has been suggested before.&nbsp;&nbsp;Anyone else like this idea?<br>&gt;<br>&gt; &gt; [ What exactly does the limit mean?&nbsp;&nbsp;bytes written?&nbsp;&nbsp;bytes currently stored?&nbsp;&nbsp;bytes stored after exit?]
<br>&gt;<br>&gt; IMHO, I would prefer that it limit disk consumption; a deleted or<br>&gt; overwritten file would not count against the process, but even a<br>&gt; temporary spike would need to be less than the cap.<br><br>
Some additional notes:<br><br>- File size should be rounded up to some block size (512 if you don't<br>have filesystem specific information) before adding to the total.</blockquote><div><br>Why? <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
- Total number of files (i.e. inodes) in existence should be capped, too.</blockquote><div><br>If you want that kind of cap, just specify individual files you are willing to let people open for reading; that is your cap.&nbsp; Only have to worry about this if you open an entire directory open for writing.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">- If sandboxed code is allowed to create dierctories, the total depth<br>and the total path length should also be capped.
</blockquote><div><br>Once again, another one of those balance issues of where do we draw the line in terms of simplicity in the setting compared to controlling every possible setting people will want (especially, it seems, when it comes to writing to disk).&nbsp; And if you want to allow directory writing, you need to allow use of the platform's OS-specific module (
e.g., posix) to do it since open() won't let you create a directory.<br><br>I really want to keep the settings and setup simple.&nbsp; I don't want to overburden people with a ton of security settings.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
(I find reading about trusted and untrusted code confusing; a few<br>times I've had to read a sentence three times before realizing I had<br>swapped those two words. Perhaps we can distinguish between trusted<br>and sandboxed? Or even native and sandboxed?)
<br><br><br></blockquote></div><br><br>Fair enough.&nbsp; When I do the next draft I will make them more distinctive (probably &quot;trusted&quot; and &quot;sandboxed&quot;).<br><br>-Brett<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