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

Switch mails to whitelisting #3607

Merged
merged 5 commits into from
Oct 25, 2020
Merged

Switch mails to whitelisting #3607

merged 5 commits into from
Oct 25, 2020

Conversation

bbhtt
Copy link
Contributor

@bbhtt bbhtt commented Aug 28, 2020

I might do kmail too, if I can. Will be same format, pushed in this PR.

Copy link
Collaborator

@rusty-snake rusty-snake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Whitelisting: +1
  • Disabling gpg support: I'm not sure whether this is good. I mean if the most users will need to enable it, it would be better to keep it and the users who don't need it can remove it if they want.

etc/profile-a-l/evolution.profile Show resolved Hide resolved
etc/profile-a-l/evolution.profile Outdated Show resolved Hide resolved
etc/profile-a-l/evolution.profile Outdated Show resolved Hide resolved

disable-mnt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it common to attach files from USB-Sticks?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it? Idk...

@bbhtt
Copy link
Contributor Author

bbhtt commented Aug 29, 2020

....

is it common to open a link in mail?

@rusty-snake
Copy link
Collaborator

is it common to open a link in mail?

yes

@bbhtt
Copy link
Contributor Author

bbhtt commented Aug 29, 2020

So do you want to add profiles.ini,dbus talk,commented private-bin bash,sh,which,firefox to them?

@rusty-snake
Copy link
Collaborator

If the profile has no private-bin, add the lines from thunderbird.

noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini

If it has a private-bin add it commented and a note about private-bin that you need to ignore or extend.

@netblue30
Copy link
Owner

@rusty-snake should we pull it in?

@rusty-snake
Copy link
Collaborator

IDK, I didn't see something against it. Testing it would be the best.

@hyiltiz
Copy link

hyiltiz commented Oct 14, 2020

I can test out kmail if/when it is ready.

@rusty-snake
Copy link
Collaborator

Should we merge now?

@netblue30 netblue30 merged commit bd1819a into netblue30:master Oct 25, 2020
@netblue30
Copy link
Owner

all in, thanks!

@bbhtt bbhtt deleted the wemail branch November 11, 2020 07:49
@bbhtt bbhtt mentioned this pull request Dec 28, 2020
rusty-snake added a commit to rusty-snake/firejail that referenced this pull request Feb 12, 2021
This reverts commit bd1819a, reversing
changes made to 807af3d.

The hole PR looks like a single crap, it is not even syntactically
correct. Has anyone at least started kmail with this profile before it
was merged? See netblue30#3979, thanks @creideiki for reporting.

> First, there are syntax errors. Several mkdir lines have file names containing asterisks.
> This gives the following error:
>
>    Error: "${HOME}/.cache/akonadi*" is an invalid filename: rejected character: "*"
>
> I am not sure what they intend to do, but whatever it is it's not working.
> Especially confusing is the line
>
>    mkdir /tmp/akonadi-*
>
> Yes, Akonadi creates a directory in /tmp, but its name is random and seems to have been created
> using mkstemp(3) or similar. I'm not sure how Firejail is supposed to be able to pre-create it.
>
> Removing the asterisks makes Firejail at least accept the profile syntactically and try to run
> the program.

It is rejected by syntax. Has anyone tested?

> At startup, Firejail now prints the following warning:
>
>     ***
>     *** Warning: cannot whitelist ${DOCUMENTS} directory
>     *** Any file saved in this directory will be lost when the sandbox is closed.
>     ***

Why was 'include disable-xdg.inc' added together with 'whitelist ${DOCUMENTS}', but
no 'nobalcklist ${DOCUMENTS}'? It can not work.

> The actual error is that PostgreSQL needs access to /usr/lib64/postgresql-13/ in order to run.
> Adding the following line to kmail.profile fixes that:
>
>     whitelist /usr/share/postgresql*

Again, has anyone thested this?

> The next problem is this message on the console:
>
>     kf.config.core: Couldn't write "/home/creideiki/.config/kmail2rc" . Disk full?
>
> Which may have something to do with the profile creating a directory with that name:
>
>     mkdir ${HOME}/.config/kmail2rc
>
> when it's supposed to be a file:
>
>     $ stat ~/.config/kmail2rc
>      File: /home/creideiki/.config/kmail2rc
>      Size: 24660           Blocks: 56         IO Block: 4096   regular file

Has anyone tested this or is this just a blind copy of the noblacklist
from above with noblacklist replaced by mkdir?

> However, the error message
>
>     kf.config.core: Couldn't write "/home/creideiki/.config/kmail2rc" . Disk full?
>
>  still appears.

Looks like netblue30#1793. HAS ANYONE TESTED THIS PROFILE??!

> Finally, when exiting KMail, it crashes with a SIGSEGV:
>
>     *** KMail got signal 11 (Exiting)
>     *** Dead letters dumped.
>     KCrash: crashing... crashRecursionCounter = 2
>     KCrash: Application Name = kmail path = /usr/bin pid = 20
>     KCrash: Arguments: /usr/bin/kmail

Has any...

> I tried restoring an older kmail.profile, from commit 319f2dc, and it has none of the above problems.

... I give up asking if anyone tested this.

> Given the multitude of problems with commit 5532fbd, I'd suggest reverting it until it can be fixed.

Yes, definitely.
@matu3ba matu3ba mentioned this pull request Oct 7, 2021
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

Successfully merging this pull request may close these issues.

5 participants