ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] I: arepo: next steps
Date: Wed, 29 Feb 2012 03:04:33 +0400
Message-ID: <20120228230433.GA22289@altlinux.org> (raw)
In-Reply-To: <201202290034.39456.ledest@gmail.com>

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

On Wed, Feb 29, 2012 at 12:34:39AM +0200, Led wrote:
> On Wednesday 29 February 2012 00:23:16 Dmitry V. Levin wrote:
[...]
> > Поскольку rpmrebuild существенным образом использует rpmbuild, я считаю
> > этот подход небезопасным.  Используемый в rpmrebuild метод - сдампить все
> > необходимое в спек, а потом выполнить rpmbuild - это довольно рискованная
> > процедура с точки зрения выполнения произвольного кода.  В нынешней
> > реализации не видно попыток с этим бороться путем квотирования всего и
> > вся, и я, честно говоря, не уверен, что нам стоит идти этим путем.
> 
> Какой "произвольный код" может оказаться в преамбуле и секции %files спека?

Например, любой текстовый тэг может содержать %макрос и вообще
произвольный %(код); некоторые из них не пройдут проверку sisyphus_check'ом
на более ранней стадии, но такие тэги как %summary, %description, %url,
%files могут содержать почти что угодно.  Понятно, что их все, наверное,
можно заквотить, но сам факт использования rpmbuild, который фактически
делает eval, открывает разные возможности, не все их которых я могу
назвать навскидку.


-- 
ldv

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

  reply	other threads:[~2012-02-28 23:04 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 18:13 Igor Vlasenko
2012-02-27 23:42 ` Dmitry V. Levin
2012-02-28 12:12   ` Michael Shigorin
2012-02-28 12:32   ` Vitaly Kuznetsov
2012-02-28 17:41     ` Igor Vlasenko
2012-02-28 18:59       ` Vitaly Kuznetsov
2012-02-28 19:08         ` Led
2012-02-28 20:38           ` Vitaly Kuznetsov
2012-02-28 21:33             ` Led
2012-02-28 22:20               ` Michael Shigorin
2012-02-28 22:23               ` Dmitry V. Levin
2012-02-28 22:34                 ` Led
2012-02-28 23:04                   ` Dmitry V. Levin [this message]
2012-02-28 23:28                     ` Led
2012-04-04 23:08                       ` Dmitry V. Levin
2012-02-29  6:09               ` Vitaly Kuznetsov
2012-02-29  8:31                 ` Michael Shigorin
2012-02-29 12:45                   ` Vitaly Kuznetsov
2012-02-29 11:51                 ` Led
2012-02-28 14:04   ` Dmitry V. Levin
2012-03-01 12:09     ` Vitaly Kuznetsov
2012-03-01 12:10       ` Vitaly Kuznetsov
2012-02-28 17:09   ` 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=20120228230433.GA22289@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