Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.project > #12498

Re: Debian python package bytecode compatibility

From Sam Hartman <hartmans@debian.org>
Newsgroups linux.debian.project
Subject Re: Debian python package bytecode compatibility
Date 2021-09-29 21:10 +0200
Message-ID <D2MY9-5Mf-1@gated-at.bofh.it> (permalink)
References <D2n3H-6V7-9@gated-at.bofh.it> <D2D8u-8kV-5@gated-at.bofh.it> <D2HYt-2Qw-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>>>>> "Paul" == Paul Wise <pabs@debian.org> writes:

    Paul> On Wed, Sep 29, 2021 at 8:25 AM Bastian Blank wrote:
    >> All Python source is compiled into bytecode during installation.

    Paul> Scripts in the bin/ directories are not compiled into
    Paul> bytecode, and there are a number of packages that do not
    Paul> compile .py files into bytecode:

So, I think that this is coming out of FIPS 140-3 which requires that
the installed software that is part of the validated cryptographic
module not be susceptible to unauthorized modification.
(There's discussions about unauthorized disclosure, although I think we
can safely say that disclosure of any software packaged in Debian main
is authorized)
I'll admit to a certain skepticism about what fraction of the python
code in Debian is reasonable to include in a validated cryptographic
module.  Let's assume there is some though.

There's a chain of signatures for the installed files, and so you could
presumably validate that the installed files have not been modified.
That is much more challenging for files generated from the postinst.

I think that using Debian as it exists today under the FIPS 140
validation rules would be tricky at least.

Back to linux.debian.project | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Debian python package bytecode compatibility Manoj Singh <rosesingh123@gmail.com> - 2021-09-28 17:20 +0200
  Re: Debian python package bytecode compatibility Sam Hartman <hartmans@debian.org> - 2021-09-28 21:30 +0200
  Re: Debian python package bytecode compatibility Bastian Blank <waldi@debian.org> - 2021-09-29 10:30 +0200
    Re: Debian python package bytecode compatibility Paul Wise <pabs@debian.org> - 2021-09-29 15:40 +0200
      Re: Debian python package bytecode compatibility Sam Hartman <hartmans@debian.org> - 2021-09-29 21:10 +0200
        Re: Debian python package bytecode compatibility Colin Watson <cjwatson@debian.org> - 2021-09-29 22:30 +0200

csiph-web