[Bug 1973608] Re: udev TAG-="uaccess" does not work on ubuntu 22.04

Launchpad Bug Tracker 1973608 at bugs.launchpad.net
Mon May 16 13:42:08 UTC 2022


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: systemd (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1973608

Title:
  udev TAG-="uaccess" does not work on ubuntu 22.04

Status in systemd package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 22.04.
  Udev version 249.11-0ubuntu3.1.

  I have 72-my-rule.rules

  ACTION=="add|bind", SUBSYSTEM=="usb",
  ENV{ID_USB_INTERFACES}=="*:060101:*", TAG-="uaccess",
  RUN:="/bin/setfacl -m g:sudo:rw -m g:plugdev:rw $env{DEVNAME}"

  It removes TAG uaccess for my usb device. On my ubuntu 18.04 and 20.04
  it works fine, but on 22.04 does not. It causes next rule 73-seat-
  late.rules to run builtin uaccess, which does not need to run.

  #  SPDX-License-Identifier: LGPL-2.1-or-later
  #
  #  This file is part of systemd.
  #
  #  systemd is free software; you can redistribute it and/or modify it
  #  under the terms of the GNU Lesser General Public License as published by
  #  the Free Software Foundation; either version 2.1 of the License, or
  #  (at your option) any later version.

  ACTION=="remove", GOTO="seat_late_end"

  ENV{ID_SEAT}=="", ENV{ID_AUTOSEAT}=="1", ENV{ID_FOR_SEAT}!="", ENV{ID_SEAT}="seat-$env{ID_FOR_SEAT}"
  ENV{ID_SEAT}=="", IMPORT{parent}="ID_SEAT"

  ENV{ID_SEAT}!="", TAG+="$env{ID_SEAT}"
  TAG=="uaccess", ENV{MAJOR}!="", RUN{builtin}+="uaccess"

  LABEL="seat_late_end"

  Udev info:
  udevadm info -q all -n /dev/bus/usb/001/007
  P: /devices/pci0000:00/0000:00:14.0/usb1/1-1
  N: bus/usb/001/007
  L: 0
  E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-1
  E: DEVNAME=/dev/bus/usb/001/007
  E: DEVTYPE=usb_device
  E: DRIVER=apple-mfi-fastcharge
  E: PRODUCT=5ac/12a8/1302
  E: TYPE=0/0/0
  E: BUSNUM=001
  E: DEVNUM=007
  E: MAJOR=189
  E: MINOR=6
  E: SUBSYSTEM=usb
  E: USEC_INITIALIZED=2331114479
  E: USBMUX_SUPPORTED=1
  E: SYSTEMD_WANTS=usbmuxd.service
  E: ID_VENDOR=Apple_Inc.
  E: ID_VENDOR_ENC=Apple\x20Inc.
  E: ID_VENDOR_ID=05ac
  E: ID_MODEL=iPhone
  E: ID_MODEL_ENC=iPhone
  E: ID_MODEL_ID=12a8
  E: ID_REVISION=1302
  E: ID_SERIAL=Apple_Inc._iPhone_00008101000A2DD826B8001E
  E: ID_SERIAL_SHORT=00008101000A2DD826B8001E
  E: ID_BUS=usb
  E: ID_USB_INTERFACES=:060101:010100:010200:030000:fffe02:fffd01:
  E: ID_VENDOR_FROM_DATABASE=Apple, Inc.
  E: GPHOTO2_DRIVER=PTP
  E: ID_GPHOTO2=1
  E: ID_MODEL_FROM_DATABASE=iPhone 5/5C/5S/6/SE
  E: ID_PATH=pci-0000:00:14.0-usb-0:1
  E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_1
  E: ID_FOR_SEAT=usb-pci-0000_00_14_0-usb-0_1
  E: COLORD_DEVICE=1
  E: COLORD_KIND=camera
  E: TAGS=:uaccess:seat:systemd:
  E: CURRENT_TAGS=:seat:systemd:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1973608/+subscriptions




More information about the foundations-bugs mailing list