• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/audit/0003-Default-ADDR_NO_RANDOMIZE-if-not-found.patch
Clayton ShotwellClayton Shotwell committed 6158928a4e402 Jun 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 6d7a35dfee10d81ddc96398749645757813802fb Mon Sep 17 00:00:00 2001
2
From: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
3
Date: Tue, 31 Mar 2015 08:00:21 -0500
4
Subject: [PATCH] Default ADDR_NO_RANDOMIZE if not found
5
​
6
Some older toolchains do not declare ADDR_NO_RANDOMIZE. Add a check for
7
it during configure and default it if it is not found.
8
​
9
Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
10
---
11
 auparse/interpret.c | 4 ++++
12
 configure.ac        | 1 +
13
 2 files changed, 5 insertions(+)
14
​
15
diff --git a/auparse/interpret.c b/auparse/interpret.c
16
index 0dcaa9f..a9d6691 100644
17
--- a/auparse/interpret.c
18
+++ b/auparse/interpret.c
19
@@ -53,6 +53,10 @@
20
 #include "auparse-defs.h"
21
 #include "gen_tables.h"
22
 
23
+#if !HAVE_DECL_ADDR_NO_RANDOMIZE
24
+# define ADDR_NO_RANDOMIZE       0x0040000
25
+#endif
26
+
27
 /* This is from asm/ipc.h. Copying it for now as some platforms
28
  * have broken headers. */
29
 #define SEMOP            1
30
diff --git a/configure.ac b/configure.ac
31
index 2e84b07..57aec03 100644
32
--- a/configure.ac
33
+++ b/configure.ac
34
@@ -66,6 +66,7 @@ AM_PROG_CC_C_O
35
 AC_CHECK_DECLS([MS_DIRSYNC], [], [], [[#include <sys/mount.h>]])
36
 AC_CHECK_DECLS([AUDIT_FEATURE_VERSION], [], [], [[#include <linux/audit.h>]])
37
 AC_CHECK_DECLS([AUDIT_VERSION_BACKLOG_WAIT_TIME], [], [], [[#include <linux/audit.h>]])
38
+AC_CHECK_DECLS([ADDR_NO_RANDOMIZE],,, [#include <sys/personality.h>])
39
 
40
 ALLWARNS=""
41
 ALLDEBUG="-g"
42
-- 
43
1.9.1
44
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.