hid: Make game controllers accessible to members of the game group

Their events have to be accessible by unprivileged users via e.g. libsdl.

MFC after:	1 month
This commit is contained in:
Vladimir Kondratyev
2025-12-01 23:42:15 +03:00
parent ecccc9d999
commit b6cad334e6
5 changed files with 26 additions and 7 deletions
+4 -3
View File
@@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd November 12, 2025
.Dd November 30, 2025
.Dt HGAME 4
.Os
.Sh NAME
@@ -69,8 +69,9 @@ prompt, or add it to
To give user applications access to the game controllers,
allow user access to the
.Pa /dev/input/event*
nodes with
.Xr devfs.rules 5 .
nodes with inclusion of user in the
.Em games
group.
.Sh HARDWARE
The
.Nm
+4 -1
View File
@@ -21,7 +21,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd September 19, 2020
.Dd November 30, 2025
.Dt PS4DSHOCK 4
.Os
.Sh NAME
@@ -55,6 +55,9 @@ The
device presents the game controller as a
.Ar evdev
type device.
It is accessible to members of the
.Em games
group.
.Sh SYSCTL VARIABLES
Next parameters are available as
.Xr sysctl 8
+4 -1
View File
@@ -21,7 +21,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd September 16, 2020
.Dd November 30, 2025
.Dt XB360GP 4
.Os
.Sh NAME
@@ -56,6 +56,9 @@ The
device presents the game controller as a
.Ar evdev
type device.
It is accessible to members of the
.Em games
group.
.Sh SYSCTL VARIABLES
The following variable is available as both
.Xr sysctl 8