Re: [PATCH] include/linux/personality.h

From: Christoph Hellwig (hch@infradead.org)
Date: Mon Jul 21 2003 - 07:39:19 EST


On Mon, Jul 21, 2003 at 01:42:11PM +0200, Hannes Reinecke wrote:
> Hi all,
>
> the attached patch encloses the kernel-only parts of personality.h with
> __KERNEL__ to prevent them to be visible in userspace. This also fixes
> the nameclash between the macro personality() with the syscall
> personality() if the header file is included in an userspace program.
> Patch is against 2.4.21, should apply to 2.6.0-test1 equally.

Don't do that, the header shouldn't be used from userspace. There's
a sys/personality.h for you in glibc 2.3.

-
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/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:42 EST