EACCESS_DENIED when following symlink in $HOME outside of $HOME

Open
#32 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
linux

Research direction

Start by reproducing the directory chooser flow with a symlink from $HOME to a directory outside it, then inspect the sandbox paths under /run/user/1000/doc and the permissions granted through Flatseal. Done means the selected graph can be written without manually granting both the inner symlink and outer real path.

Written by the indexing model from the issue text.

Description

After adding a graph following a symlink in the directory chooser dialogue, it is not possible to write to it.

An EACCESS error is thrown: Permission denied.

This is due to the sandboxing of the inherited file system link and the created portal file system within /run/user/1000/doc/by-app/com.logseq.Logseq/(.*) and within /run/user/1000/doc/\1.

After giving direct access to the inner symlink path and the outer real path of the desired directory with Flatseal, and using its absolute real path within the directory chooser, the graph could be written again.

Dominant language
Shell
Stars
22
Forks
17
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flathub/com.logseq.Logseq

All issues in flathub/com.logseq.Logseq

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.