Messages in this thread | | | Subject | Re: [PATCH] Add prctl to change endian of a task | From | Alan Cox <> | Date | Sun, 02 Apr 2006 15:56:09 +0100 |
| |
On Sul, 2006-04-02 at 16:37 +0200, Ingo Oeser wrote: > What about limiting this to be called once per task or VM? > This will prevent most abuse scenarios, I can think of.
Abuse is a possible problem but you can deal with that. If you don't inherit endian changes then the problem doesn't occur. If you must inherit them then drop the inheritance when an suid/sgid exec occurs as we do with some other properties.
Can you explain however why you can't do this simply by using a binary magic number in the executable to indicate which endian it is, or do you really need to flip it ?
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |