kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Why replacing running executable file is forbidden, but overwriting of memory mapped shared object is allowed ?
@ 2017-11-10 13:30 Lev Olshvang
  2017-11-10 14:52 ` Ricardo Ribalda Delgado
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Lev Olshvang @ 2017-11-10 13:30 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-14 16:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 13:30 Why replacing running executable file is forbidden, but overwriting of memory mapped shared object is allowed ? Lev Olshvang
2017-11-10 14:52 ` 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

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).