ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Insecure library loading
Date: Sat, 16 Oct 2010 12:05:44 +0300
Message-ID: <20101016090542.GA3273@dad.imath.kiev.ua> (raw)
In-Reply-To: <20101016063952.GA18459@truecrux.org>

On Sat, Oct 16, 2010 at 10:39:52AM +0400, Vladimir Lettiev wrote:
> > каталоги, пройтись по ним grep и вручную поотбрасывать 
> > false positive. А тесту без false positive нужен парсер sh.
> 
> Думаю, что самая надёжная проверка, это запуск скипта в чруте
> через `strace -e open` и искать в выводе подстроку `open("./libc.so`
> 
> Или вообще `open(".` т.к. открытие любого файла из текущего каталога
> потенциально небезопасно

Я задумываюсь о системе тестирования, условно скажем, repocop2,
которая еще устанавливала бы пакеты в hasher,
что позволяло бы внутри выполнять ряд тестов естественным 
образом. Меня только останавливало осознание того, сколько 
такая система кушала бы ресурсов.
Но закон Мура еще действует, так что пора задумываться и
о repocop2.

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



-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



  reply	other threads:[~2010-10-16  9:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-15 17:25 Vladimir Lettiev
2010-10-15 18:24 ` Igor Vlasenko
2010-10-15 18:32   ` Vladimir Lettiev
2010-10-15 22:13     ` Igor Vlasenko
2010-10-16  6:39       ` Vladimir Lettiev
2010-10-16  9:05         ` Igor Vlasenko [this message]
2010-10-16  9:15           ` Michael Shigorin
2010-10-16  9:49             ` Igor Vlasenko
2010-10-16 10:56               ` Michael Shigorin

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=20101016090542.GA3273@dad.imath.kiev.ua \
    --to=vlasenko@imath.kiev.ua \
    --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