Package: mount
Version: 2.33.1-0.1
Severity: minor

-- Additional info:
Using mount with '-f' will write to /run/mount/utab.
I think the '-n' option should be included implicitly since it is just a 
simulation?

When the root user does a mount with '-f' on a device previously mounted by 
another user granted with option 'user' specified in an entry of /etc/fstab,
an umount by the original user will cause a 'umount failed: Operation not 
permitted'

-- Comments/feeback/question:
Not sure how and if namespaces/context option can help alter user/group during 
a mount by root user.
Is there a way to restict which user/group can mount a device using 
user=XXX,group=xxx option in /etc/fstab since that is how /run/mount/utab is 
recorded?

-- System Information:
Debian Release: 10.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mount depends on:
ii  libblkid1      2.33.1-0.1
ii  libc6          2.28-10
ii  libmount1      2.33.1-0.1
ii  libselinux1    2.8-1+b1
ii  libsmartcols1  2.33.1-0.1
ii  util-linux     2.33.1-0.1

mount recommends no packages.

Versions of packages mount suggests:
pn  nfs-common  <none>

-- no debconf information

Reply via email to