Skip to content

problems with /dev/shm when its a symlink to /run/shm #2136

Closed

Description

@dolphinoracle

MX Linux 17.1 (debian stretch based w/ sysvinit)

Flatpak version 1.0.1

Description of the problem

MX uses sysvinit from debian stretch repo. The /dev/shm is a tmpfs, but its at /run/shm and /dev/shm is a link to /run/shm.

certain flatpaks have a problem with this arrangement. When booting the same system with systemd, /dev/shm is the mountpoint for the tmpfs and the flatpak has a memory error with incorrect permissions on /dev/shm

Steps to reproduce

use debian stretch with sysvinit (or just use MX linux in default sysvinit boot mode)
install the com.discordapp.Discord flatpak from flathub
run the flatpak as usual.

Note: other flatpaks run fine, things like abiword, kdenlive, and steam.

Activity

  1. alexlarsson commented on Oct 1, 2018

    @alexlarsson
    Member

    So, the problem is that discord uses --device=all, so it sees the host /dev, and that has the /dev/shm symlink. Its a bit unclear how to solve this in general. As a workaround, If this is a common arrangement we could just make a /run/shm directory in the sandbox.

  2. alexlarsson commented on Oct 1, 2018

    @alexlarsson
    Member

    That would not fix the systemd case though. What exact permission error do you get in that case?

  3. alexlarsson commented on Oct 1, 2018

    @alexlarsson
    Member

    Can someone verify that #2160 fixes this on debian?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions