Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: [PATCH] Add a personality to report 2.6.x version numbers | Date | Tue, 23 Aug 2011 14:44:43 +0200 |
| |
On Saturday 20 August 2011, Andi Kleen wrote: > I ran into a couple of programs which broke with the new Linux 3.0 version. > Some of those were binary only. I tried to use LD_PRELOAD to work > around it, but it was quite difficult and in one case impossible > because of a mix of 32bit and 64bit executables.
I guess another option would be to add a new sys_newnewuname syscall and change glibc. You could use symbol versioning so that old applications continue to see the 2.6.x version numbers, while anything that is built against a new glibc would see the true version.
> This patch adds a UNAME26 personality that makes the kernel > report a 2.6.40+x version number instead. The x is the x in 3.x.
Why not just always return 3.6.39 or 2.6.40 hardcoded? If an application does not understand the concept of future kernel versions, it won't need to know which future version it's running on.
Arnd
| |