View Single Post
Old 08-18-2012, 07:08 AM   #72
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
The way I had in mind, once discovered by dos-fsck, would result in identical copies under different names being created to "fix" what isn't broken.

So might as well just start out with multiple copies.
Then one only must figure out a way to enforce: ldconfig -X ...
Otherwise it would try to replace the copies with the symbolic links.

That sort of thing is usually done by replacing /sbin/ldconfig with a shell script that calls the re-named ldconfig with option -X plus an edited version of the original arguments.

Hmm...
Now we are talking about a change to the filesystem that would break any OTA update when (if) /sbin/ldconfig was ever tested.

Hmm...
Unless we learn to always patch the md5sum manifest file when we change a system file.
Yup, I forsee the need for that bsdiff/bspatch pair of routines mentioned above.
knc1 is offline   Reply With Quote