Project

General

Profile

Submit #2933

Remove unix domain socket support from cat(1)

Added by sevan 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
-
Start date:
08/01/2016
Due date:
% Done:

0%


Description

Introduced in FreeBSD[1] 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.

[1] https://svnweb.freebsd.org/base/head/bin/cat/cat.c?r1=78732&r2=83482&view=patch

patch-dfbsd-cat-nosocket.txt View (4.32 KB) sevan, 08/01/2016 06:04 PM

History

#1 Updated by tautolog 11 months ago

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.

> On Aug 1, 2016, at 7:09 PM, wrote:
>
> Issue #2933 has been reported by sevan.
>
> ----------------------------------------
> Submit #2933: Remove unix domain socket support from cat(1)
> http://bugs.dragonflybsd.org/issues/2933
>
> * Author: sevan
> * Status: New
> * Priority: Normal
> * Assignee:
> * Category: Userland
> * Target version:
> ----------------------------------------
> Introduced in FreeBSD[1] 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.
>
> [1] https://svnweb.freebsd.org/base/head/bin/cat/cat.c?r1=78732&r2=83482&view=patch
>
> ---Files--------------------------------
> patch-dfbsd-cat-nosocket.txt (4.32 KB)
>
>
> --
> You have received this notification because you have either subscribed to it, or are involved in it.
> To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

Also available in: Atom PDF