-
Notifications
You must be signed in to change notification settings - Fork 578
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
end of python2 #3164
Comments
youtube-dl: still supporting 2.6 and 2.7 |
I think some distributions are still providing security support for Python 2. Dropping Python 2 support from firejail will make backporting firejail to older distributions more complicated (e.g. the current Debian stable), as many applications there are still running with Python 2. I'm not sure if it then still makes sense to continue uploading backports. But I'm fine with either way. Interested in other opinions... |
For now the focus should be on programs written original in p3 or ported to p3 on the original p2 EOL dated (2015). I agree with you that programs which are still using p2 on Debian stable (and maybe oldstable) should have a opt-in/opt-out note. |
What would be the security risk of leaving |
None, but if you have one program depending on python2 … |
As long as the functionality of the include isn't dropped alltogether just yet I'm fine with removing it by default. Perhaps a new switch in
|
Hm, in my opinion firejail.config is more about core functionality of firejail itself, not so much about stuff that could be achieved with profiles. |
When Python is started from a running sandbox, it will run with all restrictions of the sandbox. Whether or not there is a broken Python binary on the system, waiting to be executed under the restrictions of a sandbox, should maybe not be the primary concern. Distributions shipping Python2 along with important software written in Python2 will be around for a very long time. Besides Debian Stretch LTS (June 2022) there are also Ubuntu 18.04 LTS (April 2023) or CentOS 7 (June 2024). As moving to Python3 is not always straightforward or even possible from a practical perspective, I think there will be a strong motivation to run Python2 scripts/tools inside a sandbox like Firejail. |
I'm with @smitsohu here. I don't think we should remove python2 for at least several more years. |
To clarify my point: I only want to drop |
@rusty-snake Thanks, somehow I misunderstood what was the plan! Sounds good 👍 |
@rusty-snake I misunderstood too then, yeah that makes perfect sense 😄 |
Clearing I also don't think that |
IMHO we can remove it when debian (old)stable and Ubuntu LTS have the python3 version of the program. |
@rusty-snake I'd push it out a bit further, when CentOS has the python3 versions. |
@Fred-Barclay Cent OS (latest) or all supported? CentOS latest (currently 8) should have the python3 version so that we can remove it. But CentOS 6 and 7 have very old versions, for which the firejail master profiles are often not (or no longer) developed or at least not well tested |
@rusty-snake honestly I'd say CentOS 7... EOL is 30 June 2024 which is pretty far out there but not too unreasonable IMHO. |
Claws-mail just started to drop python2 support for some plugins. As we didn't support these in our profile (my ommission) I added a comment. @rusty-snake You can add claws-mail to your list here now I suppose. |
I noticed |
openshot never has python2 support I'm closing here for now. The most allow-python2.inc includes are still justified. |
Source: https://en.wikipedia.org/wiki/Python2
Python2 is getting a security risk. Till it's completely dead we should remove
include allow-python2.inc
from every profile where it's not requiered. We could also adddisable-python2.inc
for profiles where we can't adddisable-interpreters.inc
.List of profile with
include allow-python2.inc
:The text was updated successfully, but these errors were encountered: