<p dir="ltr">So the seat assignment works fine – gdm is added to the ACL.</p>
<p dir="ltr">The problem is that the devnode is *world-readable*.</p>
<p dir="ltr">-- <br>
Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>></p>
<div class="gmail_quote">On May 28, 2014 8:57 PM, "Floris" <<a href="mailto:jkfloris@dds.nl">jkfloris@dds.nl</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Op Wed, 28 May 2014 19:06:22 +0200 schreef Zbigniew Jędrzejewski-Szmek <<a href="mailto:zbyszek@in.waw.pl" target="_blank">zbyszek@in.waw.pl</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, May 28, 2014 at 05:45:01PM +0200, Floris wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>Are you logged in as the same user on both seats?<br>
><br>
<br>
Nobody is logged in on seat1<br>
<br>
>I think the difference is that with `jstest`, the device doesn't<br>
>interact with your seat, but *you* are interacting directly with its<br>
>device node, so the only thing that's checked is devnode<br>
>permissions...<br>
><br>
<br>
When I start a game on seat0 I can use the joystick attached to seat1<br>
</blockquote>
What does 'getfacl /dev/input/js0' say? And 'loginctl seat-status seat1'?<br>
<br>
Zbyszek<br>
<br>
</blockquote>
$ getfacl /dev/input/js0<br>
getfacl: Removing leading '/' from absolute path names<br>
# file: dev/input/js0<br>
# owner: root<br>
# group: root<br>
user::rw-<br>
user:Debian-gdm:rw-<br>
group::r--<br>
mask::rw-<br>
other::r--<br>
<br>
$ loginctl seat-status seat1<br>
seat1<br>
        Sessions: *c1<br>
         Devices:<br>
                  ├─/sys/devices/pci0000:00/<u></u>0000:00:05.0/0000:02:00.0<br>
                  │ [MASTER] pci:0000:02:00.0<br>
                  ├─/sys/devices/pci0000:00/<u></u>0000:00:05.0/0000:02:00.1/<u></u>sound/card1<br>
                  │ sound:card1 "NVidia"<br>
                  │ ├─/sys/devices/pci0000:00/<u></u>0000:00:05.0/0000:02:00.1/<u></u>sound/card1/input14<br>
                  │ │ input:input14 "HDA NVidia HDMI/DP,pcm=7"<br>
                  │ └─/sys/devices/pci0000:00/<u></u>0000:00:05.0/0000:02:00.1/<u></u>sound/card1/input5<br>
                  │   input:input5 "HDA NVidia HDMI/DP,pcm=3"<br>
                  ├─/sys/devices/pci0000:00/<u></u>0000:00:1a.0/usb1/1-1/1-1.4<br>
                  │ usb:1-1.4<br>
                  │ ├─/sys/devices/pci0000...000:<u></u>00:1a.0/usb1/1-1/1-1.4/1-1.4.<u></u>1/1-1.4.1:1.0/0003:05FE:0011.<u></u>0005/input/input19<br>
                  │ │ input:input19 "Cypress Sem PS2/USB Browser Combo Mouse"<br>
                  │ ├─/sys/devices/pci0000...000:<u></u>00:1a.0/usb1/1-1/1-1.4/1-1.4.<u></u>2/1-1.4.2:1.0/0003:046D:C312.<u></u>0006/input/input20<br>
                  │ │ input:input20 "BTC USB Multimedia Keyboard"<br>
                  │ ├─/sys/devices/pci0000...000:<u></u>00:1a.0/usb1/1-1/1-1.4/1-1.4.<u></u>2/1-1.4.2:1.1/0003:046D:C312.<u></u>0007/input/input21<br>
                  │ │ input:input21 "BTC USB Multimedia Keyboard"<br>
                  │ ├─/sys/devices/pci0000...000:<u></u>00:1a.0/usb1/1-1/1-1.4/1-1.4.<u></u>3/1-1.4.3:1.0/0003:0079:0006.<u></u>0008/input/input22<br>
                  │ │ input:input22 "DragonRise Inc.   Generic   USB  Joystick  "<br>
                  │ │ ├─/sys/devices/pci0000...0/<u></u>usb1/1-1/1-1.4/1-1.4.3/1-1.4.<u></u>3:1.0/0003:0079:0006.0008/<u></u>input/input22/event19<br>
                  │ │ │ input:event19<br>
                  │ │ └─/sys/devices/pci0000...:1a.<u></u>0/usb1/1-1/1-1.4/1-1.4.3/1-1.<u></u>4.3:1.0/0003:0079:0006.0008/<u></u>input/input22/js0<br>
                  │ │   input:js0<br>
                  │ └─/sys/devices/pci0000...000:<u></u>00:1a.0/usb1/1-1/1-1.4/1-1.4.<u></u>4/1-1.4.4:1.0/0003:0079:0006.<u></u>0009/input/input23<br>
                  │   input:input23 "DragonRise Inc.   Generic   USB  Joystick  "<br>
                  │   ├─/sys/devices/pci0000...0/<u></u>usb1/1-1/1-1.4/1-1.4.4/1-1.4.<u></u>4:1.0/0003:0079:0006.0009/<u></u>input/input23/event20<br>
                  │   │ input:event20<br>
                  │   └─/sys/devices/pci0000...:1a.<u></u>0/usb1/1-1/1-1.4/1-1.4.4/1-1.<u></u>4.4:1.0/0003:0079:0006.0009/<u></u>input/input23/js1<br>
                  │     input:js1<br>
                  └─/sys/devices/pci0000:00/<u></u>0000:00:1e.0/0000:08:02.0/<u></u>sound/card2<br>
                    sound:card2 "Live"<br>
______________________________<u></u>_________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/systemd-devel</a><br>
</blockquote></div>