mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #779] Steam profile blocks access to xboxdrv gamepads #527
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#527
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Sep 14, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/779
I'm running Arch Linux with linux 4.7.2, firejail 0.9.40, xboxdrv 0.8.8 and latest stable version of Steam. I'm trying to use a Sony DualShock 3 controller over USB with the xboxdrv driver, installed from AUR. Xboxdrv is a userspace gamepad driver for Linux that works with the Xbox One/360 controllers, but also has support for other controllers (such as DualShock 3) and acts as an abstraction layer to make them behave like a standard XInput (Xbox) controller. It's the default gamepad driver in SteamOS, therefore it provides best compatibility for native Linux games on Steam.
Running Steam in firejail, the gamepad works fine in Big Picture (Steam TV Mode), but games (tested Rocket League and Stardew Valley) complain about being unable to access udev. Without firejail, the gamepad works fine in those games.
Steps to reproduce:
xboxdrv --silent --detach-kernel-driverStardew Valley stdout log (SDL game):
With Firejail
Note the
Could not initialize UDEVline.Without Firejail
@netblue30 commented on GitHub (Sep 15, 2016):
The sandbox will prevent udev from loading new drivers into the kernel. If you start steam with --noprofile, does it work?
@ghost commented on GitHub (Sep 15, 2016):
Yes.
@netblue30 commented on GitHub (Sep 16, 2016):
In a text editor open /etc/firejail/stream.profile and comment out all the lines there - you add a # at the beginning of the line. Then, you uncomment them one by one and test "firejail steam". Some of them are blocking udev. I would suspect seccomp and nonewprivs lines.
@ghost commented on GitHub (Sep 17, 2016):
It's the
protocol unix,inet,inet6line. If I only uncomment that line, I can't use the gamepad and get the UDEV error in Stardew Valley. All other lines uncommented and the gamepad works fine.@netblue30 commented on GitHub (Sep 17, 2016):
Can you please give it a try with "protocol unix,inet,inet6,netlink". If this works for you I'll modify the steam profile.
@ghost commented on GitHub (Sep 17, 2016):
Yes. That fixed it. Opened a pull request with the change.
@ghost commented on GitHub (Aug 22, 2017):
I have this same problem, yet the steam profile says "protocol unix,inet,inet6,netlink". Any other ideas?
@SkewedZeppelin commented on GitHub (Aug 22, 2017):
@CykloTronic86 Please try commenting out 'private-dev'