laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
45.94k stars 4.99k forks source link

Joplin App appimage causing SELinux issues #10834

Open entodoays opened 3 months ago

entodoays commented 3 months ago

Operating system

Linux

Joplin version

3.0.14

Desktop version info

Joplin 3.0.14 (prod, linux)

Client ID: a51880935a1c45c1a3b24f99f5f2b8f1 Sync Version: 3 Profile Version: 47 Keychain Supported: No

Revision: 05cf51e

Backup: 1.4.1 Conflict Resolution: 1.2.3 Search & Replace: 2.2.0 Suitcase: 0.3.3

Current behaviour

Every time I open Joplin, I'm getting these SELinux warnings: SELinux is preventing @joplinapp-desk from using the execheap access on a process.

* Plugin allow_execheap (53.1 confidence) suggests ****

If you do not think @joplinapp-desk should need to map heap memory that is both writable and executable. Then you need to report a bug. This is a potentially dangerous access. Do contact your security administrator and report this issue.

* Plugin catchall_boolean (42.6 confidence) suggests **

If you want to allow selinuxuser to execheap Then you must tell SELinux about this by enabling the 'selinuxuser_execheap' boolean.

Do setsebool -P selinuxuser_execheap 1

* Plugin catchall (5.76 confidence) suggests **

If you believe that @joplinapp-desk should be allowed execheap access on processes labeled unconfined_t by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing:

ausearch -c '@joplinapp-desk' --raw | audit2allow -M my-joplinappdesk

semodule -X 300 -i my-joplinappdesk.pp

Additional Information: Source Context unconfined_u:unconfined_r:unconfined_t:s0- s0:c0.c1023 Target Context unconfined_u:unconfined_r:unconfined_t:s0- s0:c0.c1023 Target Objects Unknown [ process ] Source @joplinapp-desk Source Path @joplinapp-desk Port Host fedora Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-40.26-1.fc40.noarch Local Policy RPM selinux-policy-targeted-40.26-1.fc40.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name fedora Platform Linux fedora 6.9.12-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jul 27 15:56:15 UTC 2024 x86_64 Alert Count 559 First Seen 2024-05-16 11:23:51 CEST Last Seen 2024-08-06 09:06:45 CEST Local ID dbda185a-ba66-499a-b886-f6a4aaa7d230

Raw Audit Messages type=AVC msg=audit(1722928005.647:623): avc: denied { execheap } for pid=12866 comm="@joplinapp-desk" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process permissive=0

Hash: @joplinapp-desk,unconfined_t,unconfined_t,process,execheap

Expected behaviour

No SELinux issues.

Logs

No response

github-actions[bot] commented 2 months ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

entodoays commented 2 months ago

The issue hasn't happened recently, but was not something that happened every time. So, I don't know if the issue is solved or not. Maybe, we could set the bug as fixed and reopen it if the issue happens again.

github-actions[bot] commented 1 month ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

entodoays commented 4 weeks ago

I haven't had any instances of this bug for a while. I disabled all the plugins to try to pinpoint if it was one of them causing the problem. I have re-enabled all of them one by one and still the issue has not returned, yet. Can we wait a few more days to see if the bug resurfaces before closing it?