[systemd-devel] Failed to apply ACLs: Invalid argument
Matwey V. Kornilov
matwey.kornilov at gmail.com
Wed Jul 19 09:38:37 UTC 2017
This is all that is relevant to Invalid Argument errno in strace:
readlinkat(AT_FDCWD, "/sys/devices/pci0000:00/0000:00:02.0/drm/card0",
0x55d7a4d59230, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1",
0x55d7a4d57190, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-1",
0x55d7a4d555f0, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-VGA-1",
0x55d7a4d555f0, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1",
0x55d7a4d555f0, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/pci0000:00/0000:00:02.0/graphics/fb0", 0x55d7a4d555f0,
99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1",
0x55d7a4d54c70, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input2/event2",
0x55d7a4d54b60, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD,
"/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0",
0x55d7a4d54cd0, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/devices/virtual/input/input7/event7",
0x55d7a4d54bb0, 99) = -1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport_pc", 0x55d7a4d63350, 99) =
-1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport", 0x55d7a4d63350, 99) = -1
EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport_pc", 0x55d7a4d60f90, 99) =
-1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport", 0x55d7a4d60f90, 99) = -1
EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport_pc", 0x55d7a4d60fb0, 99) =
-1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport", 0x55d7a4d60fb0, 99) = -1
EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport_pc", 0x55d7a4d60fb0, 99) =
-1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport", 0x55d7a4d60fb0, 99) = -1
EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport_pc", 0x55d7a4d5d940, 99) =
-1 EINVAL (Invalid argument)
readlinkat(AT_FDCWD, "/sys/module/parport", 0x55d7a4d5d940, 99) = -1
EINVAL (Invalid argument)
The files are present, but all of them are directories, not symlinks:
drwxr-xr-x 3 root root 0 июл 19 12:35
/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1
drwxr-xr-x 3 root root 0 июл 19 12:35
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input2/event2
drwxr-xr-x 3 root root 0 июл 19 12:35
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0
drwxr-xr-x 7 root root 0 июл 19 12:35
/sys/devices/pci0000:00/0000:00:02.0/drm/card0
drwxr-xr-x 3 root root 0 июл 19 12:35
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1
drwxr-xr-x 4 root root 0 июл 19 12:35
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1
drwxr-xr-x 3 root root 0 июл 19 12:35
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-1
drwxr-xr-x 3 root root 0 июл 19 12:35
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-VGA-1
drwxr-xr-x 3 root root 0 июл 19 12:35
/sys/devices/pci0000:00/0000:00:02.0/graphics/fb0
drwxr-xr-x 3 root root 0 июл 19 12:35 /sys/devices/virtual/input/input7/event7
drwxr-xr-x 5 root root 0 июл 19 12:31 /sys/module/parport
drwxr-xr-x 7 root root 0 июл 19 12:33 /sys/module/parport_pc
It is brand-new openSUSE 42.2 installation. No selinux or something like that.
2017-07-19 11:51 GMT+03:00 Lennart Poettering <lennart at poettering.net>:
> On Tue, 18.07.17 16:28, Matwey V. Kornilov (matwey.kornilov at gmail.com) wrote:
>
>> Hello,
>>
>> I am running systemd 228. And one one particular system installation
>> there are messages 'Failed to apply ACLs: Invalid argument' from
>> systemd-logind. Moreover, ACL on /dev/dri/* are not set correctly
>> after user log in. How could I figure out which argument is invalid?
>> Managing ACLs on /dev filesystem using setfacl works fine. I've tried
>> using debug log_level, but nothing helpful here:
>
> No idea, but I'd recommend strace'ing logind when this happens, and
> tracking looking for relevant operations on the device nodes...
>
> logind doesn't do anything particularly magic... We just invoke
> libacl, and normally libacl should validate enough what we pass
> there...
>
> do you use any MAC or so? selinux? smack? apparmor?
>
> Do you any non-standard UIDs? i.e. 65535 or so?
>
> Lennart
>
> --
> Lennart Poettering, Red Hat
--
With best regards,
Matwey V. Kornilov
More information about the systemd-devel
mailing list