From: levonshe@yandex.com (Lev Olshvang)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Why replacing running executable file is forbidden, but overwriting of memory mapped shared object is allowed ?
Date: Fri, 10 Nov 2017 16:30:17 +0300 [thread overview]
Message-ID: <1337441510320617@web44g.yandex.ru> (raw)
Hi list
The reason for my question is mainly security context.
Here the story
If you ever tried to replace executable file by new image the message executable is busy appeared and operation fails.
But the attempt to replace shared object library succeeded, and I do not understand the logic of this decision.
Besides to be security hole, I do not see any legitimate use except of live patching of shared object.
I do not know whether production or mission critical system may take a risk of live patching, but development system
would do a library update by stopping dependent application first.
I saw in kernel archives that some years ago the decision was made to withdraw restriction on shared object live replacement
and I would like to know the what what were the reasons because I want to patch my kernel to forbid shared objects live replacement. ( as I said I worry about security issue)
Regards,
Lev
next reply other threads:[~2017-11-10 13:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-10 13:30 Lev Olshvang [this message]
2017-11-10 14:52 ` Why replacing running executable file is forbidden, but overwriting of memory mapped shared object is allowed ? Ricardo Ribalda Delgado
2017-11-10 16:24 ` valdis.kletnieks at vt.edu
2017-11-10 18:04 ` Lev Olshvang
2017-11-10 19:04 ` valdis.kletnieks at vt.edu
2017-11-14 11:18 ` Lev Olshvang
2017-11-14 16:59 ` valdis.kletnieks at vt.edu
2017-11-10 17:49 ` Jeffrey Walton
2017-11-10 22:43 ` Ruben Safir
2017-11-11 0:05 ` valdis.kletnieks at vt.edu
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=1337441510320617@web44g.yandex.ru \
--to=levonshe@yandex.com \
--cc=kernelnewbies@lists.kernelnewbies.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
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;
as well as URLs for NNTP newsgroup(s).