Skip to content

libqmi-glib,udev: change qmi_wwan sysfs attr ownership to QMI_USERNAME if set

Aleksander Morgado requested to merge aleksm/libqmi:aleksander/sysfs-owner into main

If the build system has defined a username to change the ownership of the QMI control device, use the same username to change ownership of the sysfs attributes exposed by the qmi_wwan driver, which allow us to control e.g. raw-ip vs 802.3 link layer protocol management or multiplexing support features.

  # ls -ltr /sys/class/net/wwan0/qmi
  total 0
  -rw-r--r--. 1 modem root 4096 Nov 20 05:35 del_mux
  -rw-r--r--. 1 modem root 4096 Nov 20 05:35 add_mux
  -rw-r--r--. 1 modem root 4096 Nov 20 05:36 pass_through
  -rw-r--r--. 1 modem root 4096 Nov 20 05:36 raw_ip
Edited by Aleksander Morgado

Merge request reports

Loading