Skip to content
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

KeepassXC crashing in Enforce Mode #102

Closed
abhigit23 opened this issue Jan 15, 2023 · 5 comments
Closed

KeepassXC crashing in Enforce Mode #102

abhigit23 opened this issue Jan 15, 2023 · 5 comments

Comments

@abhigit23
Copy link

abhigit23 commented Jan 15, 2023

KeepassXC crashing every time when I open the database
AppArmor is updated and set to the Enforce Mode

$ sudo aa-log keepassxc
DENIED  keepassxc file_inherit /home/mystik/.local/share/gvfs-metadata/root-9c234de1.log comm=keepassxc requested_mask=r denied_mask=r
DENIED  keepassxc open /dev/tty comm=keepassxc requested_mask=r denied_mask=r
DENIED  keepassxc open /usr/share/glib-2.0/schemas/gschemas.compiled comm=keepassxc requested_mask=r denied_mask=r
DENIED  keepassxc open /usr/share/qt/translations/qtbase_en.qm comm=keepassxc requested_mask=r denied_mask=r
DENIED  keepassxc open /usr/bin/ comm=keepassxc requested_mask=r denied_mask=r
DENIED  keepassxc mkdir /run/user/1000/app/org.keepassxc.KeePassXC/ comm=keepassxc requested_mask=c denied_mask=c

aa-log output

@roddhjav
Copy link
Owner

Thanks for your issue & for the log. Can you switch to complain mode send the log again: as the enforce mode block the program it is way harder to debug it.

@abhigit23
Copy link
Author

Sure, here is the full aa-log output in Complain Mode

Thanks for your help!

roddhjav added a commit that referenced this issue Jan 15, 2023
@roddhjav
Copy link
Owner

Thanks. I fully rewritten the profile. (I don't use it too much as I am more a pass person).

You will need to personalize the XDP_PASSWORD_STORE_DIR or user_password_store_dirs variable with the directory where you store your password db. In your context, it seems to be:

@{user_password_store_dirs}+="@{MOUNTS}/Users/*/Documents/"

roddhjav added a commit that referenced this issue Jan 15, 2023
@roddhjav
Copy link
Owner

I integrated the rest of your logs. I would advise you to keep the (default) complain mode for all the profiles for at least a month. So you can check if everything works fine without breaking an app.

Also, for pacman integration with yay, you need to personalize the user_pkg_dirs variable with:

@{user_pkg_dirs}+=@{user_cache_dirs}/yay/

@abhigit23
Copy link
Author

Thanks. I fully rewritten the profile. (I don't use it too much as I am more a pass person).

You will need to personalize the XDP_PASSWORD_STORE_DIR or user_password_store_dirs variable with the directory where you store your password db. In your context, it seems to be:

@{user_password_store_dirs}+="@{MOUNTS}/Users/*/Documents/"

Thanks, it's fixed now, no more crashing, and have access to the db. (pass seems interesting so I'll definitely check it out later)
Also thanks for your advice, I'll keep on complain mode from now on and open issues if I find any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants