I have just installed Qubes 4.2 on two different computers (NUC 5 and NUC 10, both with I5 CPU) and it basically works.
Nevertheless, I have encountered a major problem:
If I want to attach files (no matter if jpg, doc, pdf etc.) to a mail in Qubes-Whonix in a corresponding APP-VM and a normal e-mail program (upload from the Thunar file manager), an error message appears after some time that the file cannot be attached to the mail. With another mail program, attaching the file deletes the entire text including metadata.
I have tested it on several freshly created Whonix instances or clones and it is always the same error.
It is not due to different formats or settings in the mail programs such as PlainText or html. I can send a simple mail without an attachment.
I donāt know whether the problem is with Qubes 4.2, Whonix-17, Tor or Debian-12. Thatās why Iām posting in both forums.
Has anyone had similar experiences or an idea where the error could lie?
I have done some tests and think I have found the solution. If anyone would like to forward this to the developers of apparmor - please do.
I initially switched off all profiles in apparmor in Whonix-workstation-17. The error was fixed and file attachments were possible.
Then I set everything to enforce mode and only in the VM based on the whonix-workstation-17 with the mail program did I switch the profiles to ācomplainā, where I suspected the highest probability of the error:
āhome.tor-browser.firefoxā and āsystem_torā
This produced no result, the error was still there.
Then I did the same in whonix-workstation-17 and the error was fixed by running the following command in /etc/apparmor.d:
I have not yet tested it in Thunderbird, but via a mail program that I used in the Tor browser. There were no problems. But I can test it with Thunderbird and then report back.
Deny rules have precedence over allow rules and so this rule will override the rules above. The order of rules do not matter.
To reproduce, simply create a file ~/Downloads/test and ~/test2. Open Tor Browser and drag both files to it. With the current rule set, both files will be denied. If you remove the marked deny rule, the test file will be allowed and test2 still denied as expected (the default is to deny). I think both of the deny rules at the end can be deleted.
Put the files that you want to upload in a subdirectory of /home/user/.tb/tor-browser/ (but not in that subroot itself). In my case, I created /home/user/.tb/tor-browser/Browser/Downloads/Pictures The rule that governs is:
owner /**/*-browser/** mrwlkix,
I think the idea is the browser should only have access to a sub-root of its installation, and nothing else. So I would be leery of modifying the apparmor profile to allow extra permissions.