Subject: df fails on /run/user/1000/doc with "Operation not permitted"

From: Nada Machkova <[email-masked]>
Date: Fri, 5 Jan 2024 10:22:51 +0100

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@nadahome:~# fusermount -u /run/user/1000/doc
root@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