public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] include/linux/personality.h
Date: Mon, 21 Jul 2003 13:42:11 +0200	[thread overview]
Message-ID: <3F1BD193.3080701@suse.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

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.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare@suse.de
SuSE Linux AG				S390 & zSeries
Deutschherrnstr. 15-19			+49 911 74053 688
90429 Nürnberg				http://www.suse.de


[-- Attachment #2: personality.patch --]
[-- Type: text/plain, Size: 729 bytes --]

--- linux-2.4.21-7/include/linux/personality.h.orig	2003-07-21 13:06:24.000000000 +0200
+++ linux-2.4.21-7/include/linux/personality.h	2003-07-21 13:07:53.000000000 +0200
@@ -1,6 +1,8 @@
 #ifndef _LINUX_PERSONALITY_H
 #define _LINUX_PERSONALITY_H
 
+#ifdef __KERNEL__
+
 /*
  * Handling of different ABIs (personalities).
  */
@@ -22,6 +24,7 @@
 extern unsigned long abi_defhandler_libcso;
 extern int abi_fake_utsname;
 
+#endif /* __KERNEL__ */
 
 /*
  * Flags for bug emulation.
@@ -69,6 +72,7 @@
 	PER_MASK =		0x00ff,
 };
 
+#ifdef __KERNEL__
 
 /*
  * Description of an execution domain.
@@ -127,4 +131,6 @@
 		__MOD_DEC_USE_COUNT(ep->module);	\
 } while (0)
 
+#endif /* __KERNEL__ */
+
 #endif /* _LINUX_PERSONALITY_H */


             reply	other threads:[~2003-07-21 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-21 11:42 Hannes Reinecke [this message]
2003-07-21 12:39 ` [PATCH] include/linux/personality.h Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F1BD193.3080701@suse.de \
    --to=hare@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox