Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document-portal: Handle weird deleted o_path fds
If you open an o_path file descriptor on the document-portal fuse filesystem, and then pass it to the document portal over dbus to re-export it, and then the invalidate_dentry_cb() callback calls fuse_lowlevel_notify_inval_entry() on the name before the document portal validates the o_path fd, then it will read back as "filename (deleted)" in /proc. We fix this by also allowing deleted files in the document-portal if the file is on the document-portal mountpoint. We later check that we actually get the right file, so this is safe.
- Loading branch information