From: Led <ledest@gmail.com> To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] подмена путей к файлам Date: Fri, 30 Jan 2009 13:58:57 +0200 Message-ID: <200901301358.57653.ledest@gmail.com> (raw) In-Reply-To: <200901301348.40259.kde@kde.kiev.ua> On Friday, 30 January 2009 13:48:40 Denis Kuznetsov wrote: > On Friday 30 January 2009 13:41:05 Denis Klimov wrote: > > Denis Kuznetsov пишет: > > > Добрый день! > > > Очень нужна библиотека для скромного хака. > > > Задача заключаеться в том что если процесс испольняеться 32х битный, то > > > подсовывать ему один конфиг, а для 64х битного процесса другой. > > > Прикладывать патчи и что-либо пересобирать лень. Поэтому хочется > > > решение ввиде врапера который будет подключаться через LD_PRELOAD. Есть > > > ли готовое решение? > > > > Не совсем понял что вы хотите, но возможно небольшой скрипт, который > > перед запуском файла смотрит на вывод команды file по нему и > > подсовывает нужный конфиг вам подойдет? > > > > -- > > Климов Денис. > > _______________________________________________ > > Sisyphus mailing list > > Sisyphus@lists.altlinux.org > > https://lists.altlinux.org/mailman/listinfo/sisyphus > > На самом деле подменит open(2) например для подмены ~/.asoundrc пустым > файлом при запуске skype ~/.asoundrc "подменяется" другим, вполне легальным образом > или /etc/gtk-2.0/* на /etc/gtk-2.0-x32/ при > запуске gtk приложений. Я так и подумал, для чего это вам:) -- Led
next prev parent reply other threads:[~2009-01-30 11:58 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-01-30 11:27 Denis Kuznetsov 2009-01-30 11:41 ` Denis Klimov 2009-01-30 11:48 ` Denis Kuznetsov 2009-01-30 11:58 ` Led [this message] 2009-01-31 6:59 ` Vitaly Ostanin 2009-01-31 7:24 ` Denis Kuznetsov 2009-01-30 11:41 ` Led 2009-01-30 11:43 ` Denis Kuznetsov 2009-01-30 11:57 ` Led 2009-01-30 12:03 ` Denis Kuznetsov 2009-01-30 13:20 ` Led
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=200901301358.57653.ledest@gmail.com \ --to=ledest@gmail.com \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git