mailing list of musl libc
 help / color / mirror / code / Atom feed
From: William Woodruff <william.woodruff@trailofbits.com>
To: musl@lists.openwall.com
Subject: [musl] [PATCH] personality: add missing personality(2) values
Date: Wed, 18 Nov 2020 10:59:31 -0500	[thread overview]
Message-ID: <FA9605B3-0AA9-4B94-B8A0-9966685518D3@trailofbits.com> (raw)

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


Adds two missing personality(2) personas: UNAME26
and FDPIC_FUNCPTRS.

FDPIC_FUNCPTRS was also missing its corresponding
PER_LINUX_FDPIC value.

This makes musl's personality.h header consistent with
the definitions supplied by glibc's personality.h.
---
include/sys/personality.h | 3 +++
1 file changed, 3 insertions(+)


[-- Attachment #2: 0001-personality-add-missing-personality-2-values.patch --]
[-- Type: text/x-patch, Size: 751 bytes --]

diff --git a/include/sys/personality.h b/include/sys/personality.h
index 31d43dfe..411dc475 100644
--- a/include/sys/personality.h
+++ b/include/sys/personality.h
@@ -5,7 +5,9 @@
 extern "C" {
 #endif
 
+#define UNAME26            0x0020000
 #define ADDR_NO_RANDOMIZE  0x0040000
+#define FDPIC_FUNCPTRS     0x0080000
 #define MMAP_PAGE_ZERO     0x0100000
 #define ADDR_COMPAT_LAYOUT 0x0200000
 #define READ_IMPLIES_EXEC  0x0400000
@@ -17,6 +19,7 @@ extern "C" {
 
 #define PER_LINUX 0
 #define PER_LINUX_32BIT ADDR_LIMIT_32BIT
+#define PER_LINUX_FDPIC FDPIC_FUNCPTRS
 #define PER_SVR4 (1 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO)
 #define PER_SVR3 (2 | STICKY_TIMEOUTS | SHORT_INODE)
 #define PER_SCOSVR3 (3 | STICKY_TIMEOUTS | WHOLE_SECONDS | SHORT_INODE)

                 reply	other threads:[~2020-11-18 16:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=FA9605B3-0AA9-4B94-B8A0-9966685518D3@trailofbits.com \
    --to=william.woodruff@trailofbits.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).