Skip to content

LD_PRELOAD hook for uname to change the machine type

License

Notifications You must be signed in to change notification settings

nhchmg/fakeuname

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fake-uname

on some linux kernel,run chroot to a new linux rootfs,will get "kernel too old" error

This is a LD_PRELOAD library that hooks the uname function and changes the release to be the environment "MYKERVER". if no environment MYKERVER ,set release to 5.0

This exists to allow one to force pip to use a particular machine type when creating wheels.

Usage

LD_PRELOAD=/path/to/libfakeuname.so [command]

Credit

Stolen from https://geekscloud.wordpress.com/2012/09/06/faking-output-of-uname-command/

License

Unknown

About

LD_PRELOAD hook for uname to change the machine type

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 78.5%
  • Makefile 21.5%