This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Saving errno around signal handlers


On 02/28/2014 07:30 PM, Rich Felker wrote:
> Of course I don't see why you even want to do this. The direction
> POSIX is taking is to require applications to save and restore errno
> if they might clobber it in the signal handler. There is no reason to
> introduce lots of complexity, overhead, and runtime latency to signal
> handling in glibc to accommodate programs which do not follow this
> requirement.

Would it be OK if the program was compiled specifically with some
security hardening options? The point being to prevent any possibility
of a signal handler from modifying the thread errno.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]