https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082016-08-02T03:10:12ZDragonFlyBSD bugtrackerDragonFlyBSD - Submit #2933: Remove unix domain socket support from cat(1)https://bugs.dragonflybsd.org/issues/2933?journal_id=129572016-08-02T03:10:12Ztautolog
<ul></ul><p>I have actually used this feature before, for test scripts for a network API, but I still support removal because it could reduce attack vectors and attack surface. I use netcat now, just as suggested.</p>
<blockquote>
<p>On Aug 1, 2016, at 7:09 PM, <a class="email" href="mailto:bugtracker-admin@leaf.dragonflybsd.org">bugtracker-admin@leaf.dragonflybsd.org</a> wrote:</p>
<p>Issue <a class="issue tracker-5 status-1 priority-4 priority-default" title="Submit: Remove unix domain socket support from cat(1) (New)" href="https://bugs.dragonflybsd.org/issues/2933">#2933</a> has been reported by sevan.</p>
<p>----------------------------------------<br />Submit <a class="issue tracker-5 status-1 priority-4 priority-default" title="Submit: Remove unix domain socket support from cat(1) (New)" href="https://bugs.dragonflybsd.org/issues/2933">#2933</a>: Remove unix domain socket support from cat(1)<br /><a class="external" href="http://bugs.dragonflybsd.org/issues/2933">http://bugs.dragonflybsd.org/issues/2933</a></p>
<ul>
<li>Author: sevan</li>
<li>Status: New</li>
<li>Priority: Normal</li>
<li>Assignee: </li>
<li>Category: Userland</li>
<li>Target version: <br />----------------------------------------<br />Introduced in FreeBSD<sup><a href="#fn1">1</a></sup> and inherited in DragonFly BSD, cat(1) has the ability to utilise a unix domain socket but the usecase is somewhat limited & better served by other tools eg netcat. Attached diff removes the functionality & restores previous behaviour. This feature is exclusive to FreeBSD & DragonFly BSD and has not been adopted by the other BSDs.</li>
</ul>
<p>[1] <a class="external" href="https://svnweb.freebsd.org/base/head/bin/cat/cat.c?r1=78732&r2=83482&view=patch">https://svnweb.freebsd.org/base/head/bin/cat/cat.c?r1=78732&r2=83482&view=patch</a></p>
<p>---Files--------------------------------<br />patch-dfbsd-cat-nosocket.txt (4.32 KB)</p>
<p>-- <br />You have received this notification because you have either subscribed to it, or are involved in it.<br />To change your notification preferences, please click here: <a class="external" href="http://bugs.dragonflybsd.org/my/account">http://bugs.dragonflybsd.org/my/account</a></p>
</blockquote>