Non-root clients can't find /tmp/mir_socket even when it's world-read/writable

Bug #1503971 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Triaged
Low
Unassigned
mir (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Clients can't find /tmp/mir_socket by default when mixing root/non-root:

$ sudo mir_demo_server_minimal --arw-file &
$ mir_demo_client_egltriangle
Can't get connection
$ mir_demo_client_egltriangle -m /tmp/mir_socket # Workaround
*works*
$ sudo mir_demo_client_egltriangle
*works*

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

This behaviour is correct. A client ought to connect to a session compositor (running as the user) and not to the system compositor (running as root).

Changed in mir:
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

You're referring to the Unity architecture. Other uses of Mir (hopefully) will not use nesting, so this bug needs addressing for them.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Given a simple workaround is documented in the description, which does not require the client to be root, it seems reasonable we should be able to fix this easily.

Changed in mir:
importance: Medium → Low
status: Invalid → Triaged
description: updated
summary: - Clients can't find /tmp/mir_socket by default when mixing root/non-root
+ Non-root clients can't find /tmp/mir_socket even when it's world-
+ writable
summary: - Non-root clients can't find /tmp/mir_socket even when it's world-
+ Non-root clients can't find /tmp/mir_socket even when it's world-read-
writable
summary: - Non-root clients can't find /tmp/mir_socket even when it's world-read-
- writable
+ Non-root clients can't find /tmp/mir_socket even when it's world-
+ read/writable
Revision history for this message
Michał Sawicz (saviq) wrote :

Syncing task from Mir.

Changed in mir (Ubuntu):
importance: Undecided → Low
status: New → Triaged
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.