All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Larsson <alexl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Limiting access to abstract unix domain sockets
Date: Thu, 11 Dec 2014 18:36:25 +0100	[thread overview]
Message-ID: <1418319385.9942.9.camel@redhat.com> (raw)

I'm working on using container technology to sandbox desktop
applications, and I've run into an issue with abstract unix domain
sockets. Generally unix domain sockets work fine in a container
situation because they are naturally namespaced via the filesystem
namespace.

However, abstract socket addresses are global to the *network*
namespace. This means that if you need to share the host network
namespace (typically so you have full ip networking access) you can't
limit access to *any* service that listens to an abstract unix socket.

I don't particularly need to use abstract sockets, so it would be ok to
just disallow its use in the container. I've looked at using seccomp for
this, but it doesn't seem to help here, as it needs to dereference the
socket address to tell if its abstract or not.

Does anyone have any idea how to do this?

             reply	other threads:[~2014-12-11 17:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-11 17:36 Alexander Larsson [this message]
     [not found] ` <1418319385.9942.9.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-12-11 17:49   ` Limiting access to abstract unix domain sockets Serge Hallyn
2014-12-11 19:18     ` Eric W. Biederman
     [not found]       ` <87zjauatbt.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
2014-12-11 20:32         ` Alexander Larsson
     [not found]           ` <1418329944.9942.12.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-12-12  3:38             ` Serge Hallyn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418319385.9942.9.camel@redhat.com \
    --to=alexl-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.