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


Groups > linux.debian.maint.python > #8576

Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis

Path csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod
From Gianfranco Costamagna <locutusofborg@debian.org>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for log checking, log analysis
Date Thu, 09 Jun 2016 10:40:01 +0200
Message-ID <rI3m2-3Lg-19@gated-at.bofh.it> (permalink)
References <rI2Jk-3h2-21@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Jun 9 08:30:10 2016
Old-Return-Path <locutusofborg@debian.org>
X-Amavis-Spam-Status No, score=-7.681 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .debian. - helo: .nm39-vm1.bullet.mail.gq1.yahoo. - helo-domain: .yahoo.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1465460053; bh=5KN1/Zop2HBjkowdfaQVYN4l7INoQFJ4ZBG1nESLnmw=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=tTsyKTLkF5BSTSKrKEAlHRKPGpS+x2P+HWTgAwyXW1/RsRekwQCbbFmEQyv1eMTrHZ9q99sfjtT2qT0chtqMZVsvZcG5QpzDQ0dfzkeyBmTdoU8/amiXRylc8d2y6LkAmlDVb7gkBGl5haCnoEEOXFut0p3Y74+R80xzQKJxPfoKbug1h4AzWLnw47zoCpjTMh7588EUDJXkY/TyAxwBuxKZo0ByON9+X1BOaXwjbOLPprzcTZ+x1zIs6L+Eh3WCOXuycvLHjawZW/n5q2w9b07Do+CPSq5uupKIxACZ0pXfSC5iAbJYXgdJvdjfZEebSD+hwyFPGcBgG4Yt5S0Pyg==
X-Yahoo-Newman-Property ymail-4
X-Yahoo-Newman-ID 813819.39144.bm@omp1050.mail.ir2.yahoo.com
X-Ymail-Osg 6t9P6vsVRDt5pyiIiNqDECWVpEds0jOo6S9wBAOguajXT87c.h5dWSONv.kK
Reply-To Gianfranco Costamagna <locutusofborg@debian.org>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13907
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/574888305.106524.1465459875508.JavaMail.yahoo@mail.yahoo.com
Approved robomod@news.nic.it
Lines 106
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 9 Jun 2016 08:11:15 +0000 (UTC)
X-Original-Message-ID <574888305.106524.1465459875508.JavaMail.yahoo@mail.yahoo.com>
X-Original-References <2ECE9D9EEF1F524185270138AE23265954F8CB97@S0MSMAIL112.arc.local>
Xref csiph.com linux.debian.maint.python:8576 linux.debian.bugs.dist:744752

Cross-posted to 2 groups.

Show key headers only | View raw


Hi,

(answering where I can!)
>Moving the code to "/usr/lib/python2.7/dist-packages/aminer" in fact allows 

>dh_python2 to extract the version information:
>
>Depends: python:any (<< 2.8), python:any (>= 2.7.5-5~), python-tz, 
>init-system-helpers (>= 1.18~)
>
>(Remark: Is there any reason to restrict the versions to >=2.7.5? The tools 
>should have compatibility with >=2.6 and I would expect the "Depends" section 
>to somehow reflect that reality. Is DEBPYTHON_SUPPORTED and DEBPYTHON_DEFAULT 
>intended to be used to fix that?)


that stuff is built for unstable/testing, so the variables are filled
with the current python situation
(2.6 is only on old-stable, and Stretch has 2.7.11 already).

Probably if you try to build it with a jessie chroot, you get different values,
and this is correct.
(you can't in general install deb built against stretch into wheezy/jessie, without
breaking stuff, this is why some dependencies are not too relaxed, to avoid people
doing that, but instead upgrading the minimal set of packages to make sure things will
work after the apt-pinning).

I don't foresee any issue here, because even in case of a backport, the package will need to
be rebuilt on top of that.

>But doing the move, lintian will not like the produced package any more:
>
>E: logdata-anomaly-miner: python-script-but-no-python-dep 
>usr/lib/aminer/AMiner


I can't say, I don't see the package installing stuff in usr/lib/python* on mentors

>The rationale behind not putting aminer into dist-packages (and removing 
>dist-packages from python-path) was:
>
>a) require the aminer-admin to "link" in each dist-packages module separately, 
>thus reminding it, that it is no good idea to include large amounts of third 
>party libraries in security-critical code. Code volume is also bugs and 
>attack-surface.


I didn't get completely this, but I leave other people to answer

>b) prepare against possible future risks due to accidental loading (call to 
>__init__) of other packages residing in dist-packages, that may give rise to 
>privilege escalation (like the GNU-TLS CVE from this/last week)


mmm you want to avoid people importing your library?
ok

>Of course, it should be possible to move the code to 
>/usr/lib/python2.7/dist-packages/aminer and perform the "link" operation, but 
>this could make it more "sexy" for an admin to include whole dist-packages in 
>python path again.
>In that light, should the code be moved?


leaving to other folks the answer
>Apart from that, this will also make it harder to use the same codebase for 
>both python2.6/python2.7, but that should be fixable by providing more 
>patches.


you can't use python2.6 on Stretch, so no issue here.

>> >-#!/usr/bin/python2 -BEsSt
>> >+#!/usr/bin/python2.7 -BEsSt
>>
>> this should be also handled by dh_python2 AFAIK
>
>Even with move dh_python2 does not touch the files. The only difference is, 
>that lintian does not like the files any more.


can you please double check with the documentation?
https://wiki.debian.org/Python/LibraryStyleGuide
>So it would be OK to place the files in usr/lib/python2.7/dist-packages and 

>add a symlink to usr/lib/python2.6/dist-packages?

no, python2.6 is dead, no need to add it here.

>I would not like to push for that. Let's take the time and learn. Also this 
>package might be the template for other security-tool packages, so better have 
>it clean before cloning.


thanks for understanding!

>Understood. It might be, that this is all not a big issue for the python-dev >pros, might be sorted out quickly.


I hope so, I understand the package is doing some non-standard things, so trying
to make it python-library style might be even a bad idea in general, this is why
I would prefer to have some double/triple checks here ;)

thanks for the nice email!

G.

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for  log checking, log analysis Fiedler Roman <Roman.Fiedler@ait.ac.at> - 2016-06-09 09:50 +0200
  Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for  log checking, log analysis Gianfranco Costamagna <locutusofborg@debian.org> - 2016-06-09 10:40 +0200
    AW: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for  log checking, log analysis Fiedler Roman <Roman.Fiedler@ait.ac.at> - 2016-06-09 11:50 +0200
  Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for  log checking, log analysis Piotr Ożarowski <piotr@debian.org> - 2016-06-09 10:40 +0200
    AW: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for  log checking, log analysis Fiedler Roman <Roman.Fiedler@ait.ac.at> - 2016-06-09 13:30 +0200
      Re: Bug#813096: ITP: logdata-anomaly-miner -- lightweight tool for  log checking, log analysis Piotr Ożarowski <piotr@debian.org> - 2016-06-09 14:40 +0200

csiph-web