mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bernd Petrovitsch <bernd@petrovitsch.priv.at>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Xin Tong <xerox.time.tech@gmail.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Running Application Inside Application
Date: Mon, 21 Nov 2011 12:05:51 +0100	[thread overview]
Message-ID: <1321873552.22548.63.camel@thorin> (raw)
In-Reply-To: <CAM_iQpXPTheJU_+GKHkDu2b0WrV_4oJJbM+pWY3uprh6fX7cSw@mail.gmail.com>

On Mon, 2011-11-21 at 11:25 +0800, Cong Wang wrote:
> On Mon, Nov 21, 2011 at 10:18 AM, Xin Tong <xerox.time.tech@gmail.com> wrote:
> > I have applications that do not install signal handlers I need it to
> > install. Therefore, I am thinking about having a light-weight run-time
> > to load the application ELF file and install the needed signal handler
> > in the run-time ? Is this doable ? What if it is not ELF-encoded ?
> 
> If you want to exec*() to load the ELF, no, the signal handlers will be

It is in general so - not only für ELF.

> cleared after exec*(), as the entire .text will be replaced by the new ELF file.
> 
> So, you probably have to parse and load the ELF file by yourself.

Hmmm, if these (obviously broken) applications use dynamic linking, one
could probably use a preload library.
Never tried that though .....

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd@petrovitsch.priv.at
                     LUGA : http://www.luga.at


  reply	other threads:[~2011-11-21 11:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-21  2:18 Xin Tong
2011-11-21  3:25 ` Cong Wang
2011-11-21 11:05   ` Bernd Petrovitsch [this message]
     [not found] ` <CAOtvUMeHu_88Tye6CMaHpRwYY_vuz=9hE48DsJz0ARhMHYju-w@mail.gmail.com>
     [not found]   ` <CALKntY1i+NHE6HuDMME+WuAVmWG=tHuV=RsK9B3VnpVgcSJiRg@mail.gmail.com>
2011-11-21 14:28     ` Gilad Ben-Yossef

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=1321873552.22548.63.camel@thorin \
    --to=bernd@petrovitsch.priv.at \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xerox.time.tech@gmail.com \
    --cc=xiyou.wangcong@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®