Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

flatpak, Steam and non-privileged namespaces


stamasd

Question

Current up-to-date installation of Funtoo (1.3), trying to have Steam installed via flatpak.

The installation of flatpak was successful, then I added the Steam flatpak repo. Now trying to run Steam with flatpak.

As regular user, the output of "flatpak run com.valvesoftware.Steam" is

	bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.
error: ldconfig failed, exit status 256

I looked around and the only mention of a similar problem was

 

The solution there was to run as root. However trying to run the above as root fails because Steam cannot run as root.

 

All help appreciated.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
15 hours ago, cardinal said:

Default setting is disabled:


# cat /proc/sys/kernel/unprivileged_userns_clone 
0

Enable on reboot:


# echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/unprivileged_userns_clone.conf

Verify enabled:


# cat  /proc/sys/kernel/unprivileged_userns_clone 
1

Thank you, that worked. Steam started after reboot, updating now.

(edit) Yes it works fine.

Link to comment
Share on other sites

  • 0

@synteejol

You will only see

/proc/sys/kernel/unprivileged_userns_clone

if you are booted into debian-sources or debian-sources-lts kernel.

I use  vanilla kernel sources, had to enable CONFIG_{USER_NS, UTS_NS, IPC_NS, PID_NS} and recompile.

Flatpak has pulseaudio error and I have no sound with any flatpak programs.

@stamasd

I installed flatpac and am unable to get sound to work. Perhaps you can help if it works for you?

Link to comment
Share on other sites

  • 0

I booted into linux-debian-sources-lts-4.9.130-2 but I obtain the error above. Anyway no problem, I solved my issue with flatpak following cardinal adivice and enabling proper kernel entry.  I installed Dota and it seems work fine,  I didn't try it yet.

Link to comment
Share on other sites

×
×
  • Create New...