<div class="gmail_quote">On Wed, Feb 25, 2009 at 7:56 AM, Johan Dahlin <span dir="ltr">&lt;<a href="mailto:johan@gnome.org">johan@gnome.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">Dan Kegel wrote:<br>
&gt; On Tue, Feb 24, 2009 at 6:07 PM, Scott Ritchie &lt;<a href="mailto:scott@open-vote.org">scott@open-vote.org</a>&gt; wrote:<br>
&gt;&gt; When I brought this up at the Ubuntu Developer Summit a while back, the<br>
&gt;&gt; security conscious there wanted to check an executable for the execute<br>
&gt;&gt; bit before launching it with Wine. �Then, the user would be prompted if<br>
&gt;&gt; they wanted to run it, and if yes the execute bit would be set and the<br>
&gt;&gt; program launched.<br>
&gt;&gt;<br>
&gt;&gt; This check would be skipped if you clicked a link on the start menu<br>
&gt;&gt; (since you obviously meant to launch a program then).<br>
&gt;<br>
&gt; Sounds good. �A helper app could do this for us, I think.<br>
&gt;<br>
&gt;&gt; That said, there&#39;s no point becoming &quot;safe&quot; until the desktop also<br>
&gt;&gt; disables single click running of .desktop files that don&#39;t have the<br>
&gt;&gt; execute bit set. �It&#39;s trivial to write a piece of Linux malware that<br>
&gt;&gt; does whatever you want by making it a .desktop file - you can even make<br>
&gt;&gt; it so it displays as whatever name you like (and not foo.desktop).<br>
&gt;<br>
&gt; Right. �Both changes are needed, the .desktop one more urgently.<br>
<br>
</div></div>That&#39;s already solved in nautilus;<br>
<br>
<a href="http://svn.gnome.org/viewvc/nautilus?view=revision&amp;revision=15003" target="_blank">http://svn.gnome.org/viewvc/nautilus?view=revision&amp;revision=15003</a><br>
<font color="#888888"><br>
Johan<br>
<br>
<br>
<br>
</font></blockquote></div><br><div>Now that Nautilus has the desktop file requiring execute bit, I have a question for all of you to consider. Do JAR files require the +x bit to load them, or are they treated like associated files and run through the interpreter? Really, Windows apps on Linux is basically the same situation as Java applications run through the bytecode interpreter. Most distros do not treat Java JAR files are executables, but rather as an associated file to the JVM. AFAIK, the main difference between the Wine and Java methods is that Wine doesn&#39;t sandbox its loading environment, while Java does. If Wine used a W32VM of some kind, then it would make more sense _not_ to require the execute bit. However, it does not use one, so it would make sense to have the execute bit.�</div>
<div><br></div><div>Also, NTFS DOES have a concept of execute bits, but Windows itself does not use them. An implementation of this is the &quot;trusted&quot; app scheme in the properties in Windows Vista and above (I don&#39;t remember if XPSP2 had it also). Although this scheme is mostly broken, it was intended to stop the execution of apps just downloaded from the internet from a non-trusted source.</div>