Mir

chmod 777 /tmp/mir_socket is no longer sufficient for non-root clients to connect to a root server

Bug #1272143 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
High
Alan Griffiths
mir (Ubuntu)
Fix Released
High
Unassigned

Bug Description

In our docs it says you can chmod the Mir socket file to connect a non-root client to a root server:
  http://unity.ubuntu.com/mir/using_mir_on_pc.html

I did this, and it still doesn't work:

$ bin/mir_demo_client_egltriangle
Can't get connection

$ bin/mir_demo_client_progressbar
Could not connect to a display server.

It seems even a world-writable socket is not enough. You have to run clients as root for them to work.

Related branches

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

It works but the documentation is wrong.

The default socket name depends on the user name.

For non-root this will typically be $XDG_RUNTIME_DIR/mir_socket

For root (where XDG_RUNTIME_DIR isn't set) this will typically be /tmp/mir_socket

So you need "bin/mir_demo_client_egltriangle -m /tmp/mir_socket"

Changed in mir:
importance: Undecided → High
assignee: nobody → Alan Griffiths (alan-griffiths)
status: New → Confirmed
Changed in mir:
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir/devel at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
milestone: none → 0.1.5
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

mir (0.1.4+14.04.20140204-0ubuntu1) trusty; urgency=medium

Changed in mir (Ubuntu):
importance: Undecided → High
status: New → Fix Released
Changed in mir:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.