xmllmx
xmllmx

Reputation: 42379

How to automatically load a given so into any newly-started process under Linux?

Under Windows, there are several ways to automatically load a given dll into any newly-started process.

Is it possible to do the same thing under Linux?

Upvotes: 1

Views: 61

Answers (1)

Employed Russian
Employed Russian

Reputation: 213937

Is it possible to do the same thing under Linux?

There is /etc/ld.so.preload, but that only works for dynamically-linked program binaries. Documentation here.

You also need to be extremely careful: if you specify something that can't be preloaded, you may make your system unbootable, or you may no longer be able to log in.

Upvotes: 1

Related Questions