Thread (6 messages) flat view 6 messages, 2 authors, 2014-05-02

Re: Connecting to sockets on MNT_READONLY mounts?

From: Andy Lutomirski <luto@amacapital.net>
Date: 2014-05-01 23:00:49
Also in: linux-fsdevel, lkml

On Thu, May 1, 2014 at 3:34 PM, Al Viro [off-list ref] wrote:
On Thu, May 01, 2014 at 03:20:00PM -0700, Andy Lutomirski wrote:
quoted
Is it supposed to work?
Why the hell not?  Same as opening a device node on r/o filesystem for
write, or doing the same with FIFO.
You can't bind a socket on a read-only fs, so I thought it was a fair question.

I'll write a patch to add MS_NOIPCCONNECT and MNT_NOIPCCONNECT to
block connect on unix sockets and open on fifos.  This will be useful
for sandboxes that want to prevent sandboxed programs from accessing
undesirable parts of the outside world.

--Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help