<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://purl.org/rss/1.0/"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
>

  <channel rdf:about="http://lwn.net/headlines/281965/">
    <title>LWN: Comments on "Extending system calls"</title>
    <link>http://lwn.net/Articles/281965/</link>
    <description>
This is a special feed containing comments posted
to the individual LWN article titled &quot;Extending system calls&quot;.

    </description>

    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>2</syn:updateFrequency>
    <items>
      <rdf:Seq>
	<rdf:li resource="http://lwn.net/Articles/302647/rss" />
	<rdf:li resource="http://lwn.net/Articles/292495/rss" />
	<rdf:li resource="http://lwn.net/Articles/282918/rss" />
	<rdf:li resource="http://lwn.net/Articles/282867/rss" />
	<rdf:li resource="http://lwn.net/Articles/282622/rss" />
	<rdf:li resource="http://lwn.net/Articles/282620/rss" />
	<rdf:li resource="http://lwn.net/Articles/282547/rss" />
	<rdf:li resource="http://lwn.net/Articles/282446/rss" />
	<rdf:li resource="http://lwn.net/Articles/282434/rss" />
      
      </rdf:Seq>
    </items>

  </channel>
    <item rdf:about="http://lwn.net/Articles/302647/rss">
      <title>Extending system calls</title>
      <link>http://lwn.net/Articles/302647/rss</link>
      <dc:date>2008-10-10T19:41:25+00:00</dc:date>
      <dc:creator>bluefoxicy</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;
Why not uh.  fork(), then in the child (which calls exec()) call close() to drop the file handle, THEN call exec()?  You know, like normal people?&lt;br&gt;
&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/292495/rss">
      <title>Syscalls and locking</title>
      <link>http://lwn.net/Articles/292495/rss</link>
      <dc:date>2008-08-03T05:43:39+00:00</dc:date>
      <dc:creator>smurf</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
Libraries don't directly call the system; they use the glibc entry points.

However, any possible locking scheme would require that execve() and open()/whatever cannot
run concurrently. It's not hard to construct a program that would be hurt rather severely by
that restriction.
&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/282918/rss">
      <title>Extending system calls</title>
      <link>http://lwn.net/Articles/282918/rss</link>
      <dc:date>2008-05-19T11:42:08+00:00</dc:date>
      <dc:creator>liljencrantz</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
If the fd creation is part of a library, that solution may be unacceptable. 
&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/282867/rss">
      <title>Extending system calls</title>
      <link>http://lwn.net/Articles/282867/rss</link>
      <dc:date>2008-05-17T21:12:01+00:00</dc:date>
      <dc:creator>jimparis</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
&lt;font class=&quot;QuotedText&quot;&gt;&amp;gt; Currently, programs can use fcntl() to change an open file descriptor to&lt;/font&gt;
&lt;font class=&quot;QuotedText&quot;&gt;&amp;gt; have the close-on-exec property, but there is always a window in time&lt;/font&gt;
&lt;font class=&quot;QuotedText&quot;&gt;&amp;gt; between the creation of the descriptor and changing its behavior. Another&lt;/font&gt;
&lt;font class=&quot;QuotedText&quot;&gt;&amp;gt; thread could do an exec() call in that window, leaking a potentially&lt;/font&gt;
&lt;font class=&quot;QuotedText&quot;&gt;&amp;gt; sensitive file descriptor into the newly run program. Closing that window&lt;/font&gt;
&lt;font class=&quot;QuotedText&quot;&gt;&amp;gt; requires an in-kernel solution.&lt;/font&gt;

No it doesn't!  Simple locking between threads would easily fix the race.  See
&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=233481&quot;&gt;https://bugzilla.redhat.com/show_bug.cgi?id=233481&lt;/a&gt; for an example.  The problem with this
approach appears to be poor performance.
&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/282622/rss">
      <title>Stylistic gripe</title>
      <link>http://lwn.net/Articles/282622/rss</link>
      <dc:date>2008-05-15T22:50:35+00:00</dc:date>
      <dc:creator>nix</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
I concur. The developers don't refer to each other by last name, and are 
pretty much universally known either by first name or email address, so it 
looks really rather out of place.

&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/282620/rss">
      <title>Stylistic gripe</title>
      <link>http://lwn.net/Articles/282620/rss</link>
      <dc:date>2008-05-15T22:25:09+00:00</dc:date>
      <dc:creator>alvherre</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
This is very minor -- it was rather disapppointing to see developers being talked about by
last name.  I can only hazard that it's the standard in press, so Edge follows it, but Jon has
always seemed to prefer using first names instead and the result is better (IMVHO).
&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/282547/rss">
      <title>Extending system calls</title>
      <link>http://lwn.net/Articles/282547/rss</link>
      <dc:date>2008-05-15T16:45:22+00:00</dc:date>
      <dc:creator>i3839</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
I'm so glad the sys_indirect approach is abandoned, it looked horrible to use (and that glibc
would provide wrapper functions is no consolidation).
&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/282446/rss">
      <title>Extending system calls</title>
      <link>http://lwn.net/Articles/282446/rss</link>
      <dc:date>2008-05-15T10:01:03+00:00</dc:date>
      <dc:creator>ncm</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
Scratch that.
&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
    <item rdf:about="http://lwn.net/Articles/282434/rss">
      <title>Extending system calls</title>
      <link>http://lwn.net/Articles/282434/rss</link>
      <dc:date>2008-05-15T08:16:11+00:00</dc:date>
      <dc:creator>ncm</dc:creator>
      <description>
      &lt;div class=&quot;FormattedComment&quot;&gt;&lt;pre&gt;
Please forgive my obtuseness (obtusity?)... why can't open() be made to do the job of all of
pipe(), socket(), etc., with all the flags and whistles one could want, leaving the
traditional entry points as special cases?  
&lt;/pre&gt;&lt;/div&gt;

      
      </description>
    </item>
</rdf:RDF>

