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

Create allow-INTERPETER.inc #2736

Merged
merged 9 commits into from
Jun 1, 2019
Merged

Create allow-INTERPETER.inc #2736

merged 9 commits into from
Jun 1, 2019

Conversation

rusty-snake
Copy link
Collaborator

@rusty-snake rusty-snake commented Jun 1, 2019

  • allow-lua.inc
  • allow-perl.inc
  • allow-python2.inc
  • allow-python3.inc
  • allow-java.inc

See #2735 (comment)

rusty-snake and others added 3 commits June 1, 2019 09:38
@SkewedZeppelin
Copy link
Collaborator

SkewedZeppelin commented Jun 1, 2019

I think I got most of them.
I left out the template to not break #2735

@rusty-snake

This comment has been minimized.

@rusty-snake
Copy link
Collaborator Author

meld, natron, qutebrowser, ranger need to be updated.

@SkewedZeppelin
Copy link
Collaborator

SkewedZeppelin commented Jun 1, 2019

That should be it.
Aside from placement here or there.

I should probably rewrite the program from #1427 and run it again.

etc/JDownloader.profile Outdated Show resolved Hide resolved
@Vincent43
Copy link
Collaborator

HEADER
COMMENTS
BLACKLISTS
NOBLACKLISTS
ALLOW INCLUDES

I think NOBLACKLISTS + ALLOW INCLUDES should be before BLACKLISTS otherwise they won't work 😃

@rusty-snake
Copy link
Collaborator Author

@Vincent43 to have the following in a profile make no sense:

noblacklist ${HOME}/something
blacklist ${HOME}/something

BLACKLIST means blacklist commands in the profile.

@glitsj16
Copy link
Collaborator

glitsj16 commented Jun 1, 2019

To accomodate Arch Linux's Perl policy I'm wondering whether we should add

noblacklist ${PATH}/site_perl
noblacklist ${PATH}/vendor_perl

to the new allow-perl.inc.

@Fred-Barclay
Copy link
Collaborator

@glitsj16 I think we should

@rusty-snake
Copy link
Collaborator Author

@glitsj16 feel free to commit.

@Vincent43
Copy link
Collaborator

to have the following in a profile make no sense:

noblacklist ${HOME}/something
blacklist ${HOME}/something

The opposite order also doesn't make sense. It doesn't make sense having noblacklist and blacklist for the same path in profile in general but noblacklist rule should precede blacklist one to be effective elsewhere and I think keeping that order here wold be consistent.

@rusty-snake
Copy link
Collaborator Author

@Vincent43 to do that to have a consistent/consequent order sounds good. I use this order above because every profile with blacklist and noblacklist has this order.
grep "^blacklist" --context=5 /etc/profile/*.profile

OK then lets have the following:

HEADER
COMMENTS -- don't know what this is.
IGNORES
NOBLACKLISTS
ALLOW INCLUDES
BLACKLISTS
DISABLE INCLUDES
MKDIRS
WHITELISTS
WHITELIST INCLUDES
OPTIONS (aa, caps, ipc-namespace, machine-id, net*, no*, protocol, seccomp, shell, tracelog)
PRIVATE OPTIONS (disable-mnt, private*)
SPECIAL OPTIONS (env, mdwx, noexec, read-only, join-or-start)
REDIRECT INCLUDES

@glitsj16 where do we blacklist ${PATH}/site_perl & blacklist ${PATH}/vendor_perl ?

@glitsj16
Copy link
Collaborator

glitsj16 commented Jun 1, 2019

@rusty-snake At present we don't blacklist site_perl and vendor_perl, although I think we should. I forgot that part, nice catch. To keep this draft PR clean, would you be so kind as to add those to the current /etc/firejail/disable-interpreters.inc?

@SkewedZeppelin
Copy link
Collaborator

@SkewedZeppelin
Copy link
Collaborator

SkewedZeppelin commented Jun 1, 2019

Ignoring placement, are we OK with this to merge?

@rusty-snake
Copy link
Collaborator Author

@SkewedZeppelin I think so.

@rusty-snake rusty-snake marked this pull request as ready for review June 1, 2019 20:11
@rusty-snake rusty-snake merged commit 17f8035 into netblue30:master Jun 1, 2019
@rusty-snake rusty-snake deleted the create-allow-interpreter-includes branch June 1, 2019 20:19
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