aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch
diff options
context:
space:
mode:
authorallangarret <allan.garret@gmail.com>2017-05-13 12:50:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-14 11:33:00 +0000
commit00b936fa46df92ae20f5d130217a0ad5487b2c92 (patch)
tree070c9d6eaa3cb64c3c8125cec991c4734a1a56d6 /testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch
parent5188d28b5db246fd32281e80e7a62d3694c68836 (diff)
downloadaports-00b936fa46df92ae20f5d130217a0ad5487b2c92.tar.bz2
aports-00b936fa46df92ae20f5d130217a0ad5487b2c92.tar.xz
testing/apparmor: new aport
Diffstat (limited to 'testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch')
-rw-r--r--testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch b/testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch
new file mode 100644
index 0000000000..804550aa0e
--- /dev/null
+++ b/testing/apparmor/0004-Define-RLIMIT_OFILE-if-needed.patch
@@ -0,0 +1,17 @@
+diff --git a/parser/parser_misc.c b/parser/parser_misc.c
+index f7772e6..90e8b9c 100644
+--- a/parser/parser_misc.c
++++ b/parser/parser_misc.c
+@@ -124,6 +124,9 @@ static struct keyword_table rlimit_table[] = {
+ {"core", RLIMIT_CORE},
+ {"rss", RLIMIT_RSS},
+ {"nofile", RLIMIT_NOFILE},
++#ifndef RLIMIT_OFILE
++#define RLIMIT_OFILE RLIMIT_NOFILE
++#endif
+ {"ofile", RLIMIT_OFILE},
+ {"as", RLIMIT_AS},
+ {"nproc", RLIMIT_NPROC},
+--
+2.11.2
+