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: Sat, 23 Jul 2011 03:24:30 +0400
Message-ID: <20110722232430.GA11505@altlinux.org> (raw)
In-Reply-To: <CAK42-GrG6N=oH7JtAb0GsT7xaewXLrWj-3BQuz33Y_RAa4e1iw@mail.gmail.com>

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

On Sat, Jul 23, 2011 at 12:22:34AM +0400, Evgeny Sinelnikov wrote:
> 22 июля 2011 г. 23:56 пользователь Dmitry V. Levin написал:
[...]
> > В любой части спекфайла может встретиться вычисление выражения, которое
> > приведет к исполнению произвольного shell-кода при запуске rpm --specfile.
> >
> Я предлагаю их исключить при вычислении NVR всё лишнее.

Это сложно.  Вы либо теряете поддержку вполне легальных конструкций,
либо сохраняете поддержку исполнения произвольного shell-кода.

По шаблонам kernel-модулей можно, наверное, договориться и привести
их все к простому виду, который легко парсится без помощи rpm.

> Примерно так:
> $ grep -e '^[Nn]ame:.*' -e '^[Vv]ersion:.*' -e '^[Rr]elease:.*' -e
> '^[Gg]roup:.*' -e '^[Ll]icense:.*' -e '^[Ss]ource:.*' -e '^[Ss]ummary:.*' -e
> '^%define.*' -e '^%description.*' <girar.spec
> %define tratata ng

%define tratata %(echo ng)


-- 
ldv

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

  parent reply	other threads:[~2011-07-22 23:24 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
2011-07-22 23:24                 ` Dmitry V. Levin [this message]
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=20110722232430.GA11505@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