ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] JFYI: kernel modules build on git.eter
Date: Fri, 22 Jul 2011 23:56:24 +0400
Message-ID: <20110722195624.GA22202@altlinux.org> (raw)
In-Reply-To: <CAK42-GrTir+jtWTZXUxsWw6k=AZ2T61xXE3gnvqOCkM-Gdweig@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]

On Fri, Jul 22, 2011 at 11:31:59PM +0400, Evgeny Sinelnikov wrote:
> 22 июля 2011 г. 23:17 пользователь Dmitry V. Levin написал:
> > On Fri, Jul 22, 2011 at 08:47:17PM +0300, Igor Vlasenko wrote:
> > > On Fri, Jul 22, 2011 at 01:07:02AM +0400, Dmitry V. Levin wrote:
> > > > On Fri, Jul 22, 2011 at 12:58:09AM +0400, Денис Смирнов wrote:
> > > > > DVL> Там используется subst_module_spec(), скопированный из
> > kernel-build-sh-functions.
> > > > > DVL> Надеюсь, вы помните, что там есть вызов утилиты add_changelog,
> > который равносилен
> > > > > DVL> исполнению произвольного кода на сервере?
> > >
> > > можно заменить add_changelog на равносильный вызов
> > > $ srpmnmu -i --next-release-policy=none --changelog '- some text'
> > /path/to.spec
> > > у которого реализация add_changelog чисто перловая.
> >
> > Насколько надежно в таком случае srpmnmu может вычислить
> > '%|serial?{%{serial}:}|%{version}-%{release}'
> > используемый для формирования %changelog'а?
> >
> У меня используется свой вариант girar-stamp-spec, но проблема там та же.
> Возможность вероятного трояна, если я правильно понял, состоит в том, что в
> сборочных секциях может быть, по сути, любой скрипт, а соответственно и код.

В любой части спекфайла может встретиться вычисление выражения, которое
приведет к исполнению произвольного shell-кода при запуске rpm --specfile.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2011-07-22 19:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 20:41 ` Dmitry V. Levin
2011-07-21 20:58   ` Денис Смирнов
2011-07-21 21:07     ` Dmitry V. Levin
2011-07-22 17:47       ` Igor Vlasenko
2011-07-22 18:45         ` Rinat Bikov
2011-07-23 14:12           ` Igor Vlasenko
2011-07-22 19:17         ` Dmitry V. Levin
2011-07-22 19:56             ` Dmitry V. Levin [this message]
2011-07-22 23:24                 ` Dmitry V. Levin
2011-07-23  8:26                     ` Dmitry V. Levin
2011-07-23  8:30                       ` Michael Shigorin
2011-07-24 21:15                         ` Dmitry V. Levin
2011-07-24  9:50                           ` [devel] [JT] чудеса в %release бэкпортов Michael Shigorin
2011-07-24 21:18                           ` [devel] JFYI: kernel modules build on git.eter Dmitry V. Levin
2011-08-06 12:17                             ` Michael Shigorin
2011-07-23  8:26               ` Michael Shigorin
2011-07-23 14:22           ` Igor Vlasenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110722195624.GA22202@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git