-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLite does not work on the document portal's filesystem #1117
Comments
Does SQLite try to access other files when creating the database? |
It has a |
A quick test shows that error 40 is related to too many symlink levels:
|
From outside of the sandbox:
From inside
So the permissions are incorrect. With strace:
|
Nevermind.
Now open does try to open I think we need to resolve the link manually here. |
Second problem:
|
Resolve the symlink from /proc before opening See flatpak#1117
We need to implement the locking mechanisms for sqlite. |
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See #1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See #1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See flatpak#1117 Signed-off-by: Hubert Figuière <[email protected]>
Resolve the symlink from /proc before opening See #1117 Signed-off-by: Hubert Figuière <[email protected]>
This is needed for things like sqlite3 See #1117 Signed-off-by: Hubert Figuière <[email protected]>
Trying to open an SQLite database using libsqlite or the command line utility does fail both from within the sandbox, and from the host system. Reading from, writing to and creating files works as expected from inside and outside the sandbox. Only SQLite does not work.
The following steps can be used to replicate the issue:
SQLite fails with the non-descriptive error message:
The logs from xdg-document-portal contain not very much information besides
error 40
:I also tried to get more information from libfuse by setting a custom log function using
fuse_set_log_func ()
, but the library doesn't seem to log anything (also, logs should appear in stderr by default).This issue is loosely related to #463, which does not apply here, because write access to the whole directory is already present. Also, there are a few mentions of the problem with other applications that need to access SQLite databases, like for example here sqlitebrowser/sqlitebrowser#3400.
The text was updated successfully, but these errors were encountered: