Mailinglist Archive: opensuse-bugs (4233 mails)

< Previous Next >
[Bug 1020341] New: systemd: regression, uaccess no longer works
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 17 Jan 2017 11:47:15 +0000
  • Message-id: <bug-1020341-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1020341


Bug ID: 1020341
Summary: systemd: regression, uaccess no longer works
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 42.2
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
Assignee: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
Reporter: novell-ugeuder@xxxxxxxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---

I am running openSUSE Leap 42.2 with all updates. Systemd tag "uaccess" no
longer grants file (device node) access to the user. This works fine in 13.2.

1) How to reproduce:

1a) add udev rules /etc/udev/rules.d/85-myusb.rules

ACTION=="add", KERNEL=="sd*", SUBSYSTEM=="block", SUBSYSTEMS=="usb",
ENV{ID_DRIVE_THUMB}=="1", ENV{DEVTYPE}=="partition", TAG+="uaccess",
ENV{FOO}+="part9"

ACTION=="add", KERNEL=="sd*", SUBSYSTEM=="block", SUBSYSTEMS=="usb",
ENV{ID_DRIVE_THUMB}=="1", ENV{DEVTYPE}=="disk", TAG+="uaccess",
ENV{FOO}+="drive9"

(note that udev does NOT tolerate linefeeds inside a rule!!!)

1b) Insert a USB memory stick

(For testing this it might be better to de-activate automount in your desktop.
In xfce this can be done under Thunar File manager, Preferences, Advanced,
Volume Management, Configure. However, I don't think that the bug and automount
are related)

2) Expected results

2a) for debugging only

udevadm info /sys/class/block/sd<whatever you got>

output shows the FOO property (for debugging only) and the uaccess TAG, so the
rule was applied.


2b) the real beef

user account can read and write /dev/sd<whatever you got> (the USB stick)

e.g. file -s /dev/sdc


3) Observed results in 42.2

3a) as 2a, OK

3b) no access for user, NOK, this is the bug


4) Observed results in 13.2

4a) as 2a OK

4b) access for user is granted. ownership is still (root,disk), but there is an
ACL to grant access to the user. Use getfacl to display the ACL



Archlinux Wiki mentions that uaccess requires a working user session. So I
include this data from 42.2, too. No relevant difference between 13.2 and 42.2
observed.

$ loginctl show-session $XDG_SESSION_ID
Id=2
User=1000
Name=geuder
Timestamp=Tue 2017-01-17 10:35:45 EET
TimestampMonotonic=50306270
VTNr=7
Seat=seat0
Display=:0
Remote=no
Service=lightdm
Desktop=xfce
Scope=session-2.scope
Leader=1684
Audit=2
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >