GNU bug report logs -
#68256
df fails on /run/user/1000/doc with "Operation not permitted"
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68256 in the body.
You can then email your comments to 68256 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#68256
; Package
coreutils
.
(Fri, 05 Jan 2024 09:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nada Machkova <machkova.nada <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 05 Jan 2024 09:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
hello
I have just upgraded Debian Bullseye
and simple df command respond at user CLI
$ df -hT
df: /run/user/1000/doc: Operation not permitted
...
but when I do the same as root there is NO error.
So I UNmounted relevant file and AFTER that df response has NO error for user
# fusermount -u /run/user/1000/doc
But I need to do it after each reboot :-(
I've just analyzed system status and versions
and checked related bug https://github.com/flatpak/xdg-desktop-portal/issues/553
PLS see the following details and let me know if it is coreutils bug
thank you for your time
Nada
======= as user
$ df -hT
df: /run/user/1000/doc: Operation not permitted
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 967M 0 967M 0% /dev
tmpfs tmpfs 201M 1.4M 200M 1% /run
/dev/mapper/nadahome--vg-root ext4 20G 13G 6.1G 68% /
tmpfs tmpfs 1003M 0 1003M 0% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/sda1 ext2 470M 89M 357M 20% /boot
/dev/mapper/nadahome--vg-home ext4 28G 19G 7.4G 73% /home
tmpfs tmpfs 201M 72K 201M 1% /run/user/1000
$ ls -la /run/user/1000/doc/
total 0
dr-x------ 2 nada nada 0 Jan 1 1970 .
drwx------ 10 nada nada 300 Jan 5 09:34 ..
dr-x------ 2 nada nada 0 Jan 1 1970 by-app
$ ls -la /run/user/1000/doc/by-app/
total 0
dr-x------ 2 nada nada 0 Jan 1 1970 .
dr-x------ 2 nada nada 0 Jan 1 1970 ..
$ ps -ef |grep doc
nada 1206 1034 0 09:29 ? 00:00:00 /usr/libexec/xdg-document-portal
root 1221 1206 0 09:29 ? 00:00:00 fusermount -o
rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal --
/run/user/1000/doc
nada 2262 1390 0 10:00 pts/0 00:00:00 grep doc
======== as root
# df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 967M 0 967M 0% /dev
tmpfs tmpfs 201M 1.4M 200M 1% /run
/dev/mapper/nadahome--vg-root ext4 20G 13G 6.1G 68% /
tmpfs tmpfs 1003M 0 1003M 0% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/sda1 ext2 470M 89M 357M 20% /boot
/dev/mapper/nadahome--vg-home ext4 28G 19G 7.4G 73% /home
tmpfs tmpfs 201M 72K 201M 1% /run/user/1000
# ls -la /run/user/1000/
ls: cannot access '/run/user/1000/doc': Permission denied
total 4
drwx------ 10 nada nada 300 Jan 5 09:34 .
drwxr-xr-x 3 root root 60 Jan 5 09:34 ..
srw-rw-rw- 1 nada nada 0 Jan 5 09:34 bus
drwx------ 3 nada nada 60 Jan 5 09:34 dbus-1
drwx------ 2 nada nada 60 Jan 5 09:34 dconf
d????????? ? ? ? ? ? doc
drwx------ 2 nada nada 140 Jan 5 09:34 gnupg
drwx------ 2 nada nada 40 Jan 5 09:34 gvfs
-rw------- 1 nada nada 326 Jan 5 09:34 ICEauthority
drwx------ 2 nada nada 60 Jan 5 09:34 keyring
srw-rw-rw- 1 nada nada 0 Jan 5 09:34 pipewire-0
-rw-r----- 1 nada nada 0 Jan 5 09:34 pipewire-0.lock
srw-rw-rw- 1 nada nada 0 Jan 5 09:34 pk-debconf-socket
drwx------ 2 nada nada 80 Jan 5 09:34 pulse
drwxr-xr-x 5 nada nada 140 Jan 5 09:34 systemd
# ps -ef |grep doc
nada 1206 1034 0 09:29 ? 00:00:00 /usr/libexec/xdg-document-portal
root 1221 1206 0 09:29 ? 00:00:00 fusermount -o
rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal --
/run/user/1000/doc
root 2287 1443 0 10:06 pts/1 00:00:00 grep doc
root <at> nadahome:~# fusermount -u /run/user/1000/doc
root <at> nadahome:~# ls -la /run/user/1000/doc
total 4
drwx------ 10 nada nada 300 Jan 5 09:34 .
drwxr-xr-x 3 root root 60 Jan 5 09:34 ..
srw-rw-rw- 1 nada nada 0 Jan 5 09:34 bus
drwx------ 3 nada nada 60 Jan 5 09:34 dbus-1
drwx------ 2 nada nada 60 Jan 5 09:34 dconf
drwx------ 2 nada nada 40 Jan 5 09:34 doc
...
============ OS kernel and packages
# uname -a
Linux nadahome 5.10.0-13-686 #1 SMP Debian 5.10.106-1 (2022-03-17)
i686 GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
# dpkg -l |grep coreutils
ii coreutils 8.32-4
i386 GNU core utilities
# dpkg -l |grep xdg
ii python3-xdg 0.27-2
all Python 3 library to access
freedesktop.org standards
ii xdg-dbus-proxy
0.1.2-2 i386 filtering D-Bus proxy
ii xdg-desktop-portal
1.8.1-1 i386 desktop integration
portal for Flatpak and Snap
ii xdg-desktop-portal-gtk
1.8.0-1 i386 GTK+/GNOME portal
backend for xdg-desktop-portal
ii xdg-user-dirs 0.17-2
i386 tool to manage well known user
directories
ii xdg-utils
1.1.3-4.1 all desktop integrati
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#68256
; Package
coreutils
.
(Fri, 05 Jan 2024 13:52:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 68256 <at> debbugs.gnu.org (full text, mbox):
tag 68256 notabug
close 68256
stop
On 05/01/2024 09:22, Nada Machkova wrote:
> hello
> I have just upgraded Debian Bullseye
> and simple df command respond at user CLI
> $ df -hT
> df: /run/user/1000/doc: Operation not permitted
> ...
> but when I do the same as root there is NO error.
> So I UNmounted relevant file and AFTER that df response has NO error for user
> # fusermount -u /run/user/1000/doc
> But I need to do it after each reboot :-(
>
> I've just analyzed system status and versions
> and checked related bug https://github.com/flatpak/xdg-desktop-portal/issues/553
> PLS see the following details and let me know if it is coreutils bug
> thank you for your time
> Nada
Debian Bullseye (using coreutils 8.32) would need to apply:
https://github.com/coreutils/gnulib/commit/9a38d499ca.patch
That patch was included in the coreutils >= 9.0 releases,
and avoids including this flatpak related fuse.portal mount in the default df list.
I also have such a fuse.portal mount on my Fedora 39 system:
# grep /run/user/1001/doc /proc/mounts
portal /run/user/1001/doc fuse.portal ...
and weirdly root can statfs() but not stat(), and non root is vice versa :/
# stat /run/user/1001/doc
stat: cannot statx '/run/user/1001/doc': Permission denied
$ stat /run/user/1001/doc
File: /run/user/1001/doc
Size: 0 Blocks: 0 IO Block: 4096 directory
Device: 0,77 Inode: 1 Links: 2
Access: (0500/dr-x------) Uid: ..
Context: system_u:object_r:fusefs_t:s0
$ stat -f /run/user/1001/doc
stat: ... '/run/user/1001/doc': Operation not permitted
# stat -f /run/user/1001/doc
File: "/run/user/1001/doc"
ID: 0 Namelen: 0 Type: fuseblk
Block size: 0 Fundamental block size: 0
Blocks: Total: 0 Free: 0 Available: 0
Inodes: Total: 0 Free: 0
cheers,
Pádraig
Added tag(s) notabug.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Fri, 05 Jan 2024 13:52:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
68256 <at> debbugs.gnu.org and Nada Machkova <machkova.nada <at> gmail.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Fri, 05 Jan 2024 13:52:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 03 Feb 2024 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.