[GH-ISSUE #3262] keepassxc: cannot access NTFS mountpoints in /storage (private-etc) #2047

Closed
opened 2026-05-05 08:43:13 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @freerunner on GitHub (Mar 2, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3262

Profile issue with: keepassxc (maybe others as well, just started setting up Firejail)
Runs with --noprofile option: yes

Linux distribution: KDE Neon User Edition (Ubuntu 18.04)
Firejail version: 0.9.62 (from ppa)

My external NTFS data mount points, located in /storage are not visible within the jailed keepassxc.
However, if I comment the line
private-etc alternatives,fonts,ld.so.cache,machine-id
they're accessible again.

Mount options for the drives in fstab:
UUID=[cut] /storage/Data ntfs defaults,umask=007,uid=1000,gid=100,noatime,big_writes 0 0
/storage/Data is whitelisted in whitelist-common.local as well.

Can anybody help?

Originally created by @freerunner on GitHub (Mar 2, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3262 Profile issue with: keepassxc (maybe others as well, just started setting up Firejail) Runs with --noprofile option: yes Linux distribution: KDE Neon User Edition (Ubuntu 18.04) Firejail version: 0.9.62 (from ppa) My external NTFS data mount points, located in /storage are not visible within the jailed keepassxc. However, if I comment the line `private-etc alternatives,fonts,ld.so.cache,machine-id` they're accessible again. Mount options for the drives in fstab: `UUID=[cut] /storage/Data ntfs defaults,umask=007,uid=1000,gid=100,noatime,big_writes 0 0` /storage/Data is whitelisted in whitelist-common.local as well. Can anybody help?
gitea-mirror 2026-05-05 08:43:13 -06:00
Author
Owner

@rusty-snake commented on GitHub (Mar 2, 2020):

/storage/Data is whitelisted in whitelist-common.local as well.

whitelisting isn't supported for /storage, this hasn't any effect.

Can you run firejail --build keepassxc | grep private-etc and post the output (should only one private-etc line).

<!-- gh-comment-id:593411184 --> @rusty-snake commented on GitHub (Mar 2, 2020): > /storage/Data is whitelisted in whitelist-common.local as well. whitelisting isn't supported for /storage, this hasn't any effect. Can you run `firejail --build keepassxc | grep private-etc` and post the output (should only one `private-etc` line).
Author
Owner

@freerunner commented on GitHub (Mar 2, 2020):

Sure.

This is with a stock profile:
andy@X570DESKTOP:/etc/firejail$ firejail --build keepassxc | grep private-etc
private-etc drirc,fonts,gcrypt,kde5rc,login.defs,passwd,

Wicked: After running firejail --build keepassxc | grep private-etc I can see all my mount points in /storage. If I simply run keepassxc from terminal they're gone.

edit: reformat code blocks

<!-- gh-comment-id:593479991 --> @freerunner commented on GitHub (Mar 2, 2020): Sure. This is with a stock profile: `andy@X570DESKTOP:/etc/firejail$ firejail --build keepassxc | grep private-etc` `private-etc drirc,fonts,gcrypt,kde5rc,login.defs,passwd,` Wicked: After running `firejail --build keepassxc | grep private-etc` I can see all my mount points in /storage. If I simply run keepassxc from terminal they're gone. edit: reformat code blocks
Author
Owner

@freerunner commented on GitHub (Mar 3, 2020):

I'm back. :)

Okay, after adding the items to private-etc in the profile, there are more detailed error messages:
https://pastebin.com/RgT3sX7q

<!-- gh-comment-id:593777913 --> @freerunner commented on GitHub (Mar 3, 2020): I'm back. :) Okay, after adding the items to private-etc in the profile, there are more detailed error messages: https://pastebin.com/RgT3sX7q
Author
Owner

@ghost commented on GitHub (Mar 3, 2020):

Wicked: After running firejail --build keepassxc | grep private-etc I can see all my mount points in /storage. If I simply run keepassxc from terminal they're gone.

That is expected behaviour. The --build option creates a volatile profile, meaning that will be gone (not saved to disk) the next time you run without the '--build' parameter. We'll see what we can do to fix the default keepassxc profile. But for now you can use --build=keepassxc.profile, which will save keepassxc.profile to your ${HOME}/.config/firejail directory. Once that is done, you should be able to see your external NTFS data mount points when simply running 'keepassxc' or 'firejail /usr/bin/keepassxc' like before.

<!-- gh-comment-id:593790092 --> @ghost commented on GitHub (Mar 3, 2020): > Wicked: After running firejail --build keepassxc | grep private-etc I can see all my mount points in /storage. If I simply run keepassxc from terminal they're gone. That is expected behaviour. The `--build` option creates a volatile profile, meaning that will be gone (not saved to disk) the next time you run without the '--build' parameter. We'll see what we can do to fix the default keepassxc profile. But for now you can use `--build=keepassxc.profile`, which will save keepassxc.profile to your ${HOME}/.config/firejail directory. Once that is done, you should be able to see your external NTFS data mount points when simply running 'keepassxc' or 'firejail /usr/bin/keepassxc' like before.
Author
Owner

@rusty-snake commented on GitHub (Mar 3, 2020):

@freerunner is there anything in the journal/syslog.

<!-- gh-comment-id:593949098 --> @rusty-snake commented on GitHub (Mar 3, 2020): @freerunner is there anything in the journal/syslog.
Author
Owner

@freerunner commented on GitHub (Mar 3, 2020):

Aha. I'm slowly beginning to understand. The --build parameter does not interfere with the normal exectution of the program, instead starts to monitor the behavior. Then a profile is created after the application has been closed. Is this correct?

Okay, created a custom profile. When run with it, firejail reports an invalid whitelisted filename path.
-> whitelist /var/run/samba/gencache_notrans.tdb
After removing that line, keepassxc runs, but all NTFS mountpoints are gone again.

This is the custom profile: https://pastebin.com/LW8KmVcP
This is the output in stderr after closing the app:

Reading profile /home/andy/.config/firejail/keepassxc.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 5687, child pid 5688
Warning: skipping exports for private /etc
Warning: skipping krb5.conf for private /etc
Warning: skipping drirc for private /etc
Warning: skipping gcrypt for private /etc
Warning: skipping kde5rc for private /etc
Private /etc installed in 8.63 ms
5 programs installed in 7.17 ms
Child process initialized in 41.96 ms
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found

Parent is shutting down, bye...

@rusty-snake
With the custom profile, syslog is clean from messages.
This is a recent syslog output with a stock profile:
https://pastebin.com/DdzZPRPH

<!-- gh-comment-id:593955907 --> @freerunner commented on GitHub (Mar 3, 2020): Aha. I'm slowly beginning to understand. The --build parameter does not interfere with the normal exectution of the program, instead starts to monitor the behavior. Then a profile is created after the application has been closed. Is this correct? Okay, created a custom profile. When run with it, firejail reports an invalid whitelisted filename path. -> whitelist /var/run/samba/gencache_notrans.tdb After removing that line, keepassxc runs, but all NTFS mountpoints are gone again. This is the custom profile: https://pastebin.com/LW8KmVcP This is the output in stderr after closing the app: ``` Reading profile /home/andy/.config/firejail/keepassxc.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 5687, child pid 5688 Warning: skipping exports for private /etc Warning: skipping krb5.conf for private /etc Warning: skipping drirc for private /etc Warning: skipping gcrypt for private /etc Warning: skipping kde5rc for private /etc Private /etc installed in 8.63 ms 5 programs installed in 7.17 ms Child process initialized in 41.96 ms org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" org.kde.solid.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found Parent is shutting down, bye... ``` @rusty-snake With the custom profile, syslog is clean from messages. This is a recent syslog output with a stock profile: https://pastebin.com/DdzZPRPH
Author
Owner

@rusty-snake commented on GitHub (Apr 1, 2020):

still need help?

<!-- gh-comment-id:607313389 --> @rusty-snake commented on GitHub (Apr 1, 2020): still need help?
Author
Owner

@rusty-snake commented on GitHub (Jun 4, 2020):

I'm closing here due to inactivity, please fell free to reopen if you still have this issue.

<!-- gh-comment-id:638794518 --> @rusty-snake commented on GitHub (Jun 4, 2020): I'm closing here due to inactivity, please fell free to reopen if you still have this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2047
No description provided.