From 7ce8ae0c1a372f3bc024f36c238b7da744520f71a4e8ce48be241aeb3730d267 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 21 Feb 2011 13:30:00 +0000 Subject: [PATCH] Accepting request 62244 from home:a_jaeger:branches:openSUSE:Factory looks good OBS-URL: https://build.opensuse.org/request/show/62244 OBS-URL: https://build.opensuse.org/package/show/security/audit?expand=0&rev=25 --- audit-oom_score_adj.patch | 2 +- audit-secondary.spec | 2 +- audit.changes | 5 +++++ audit.spec | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/audit-oom_score_adj.patch b/audit-oom_score_adj.patch index 6a6cbb1..1aed673 100644 --- a/audit-oom_score_adj.patch +++ b/audit-oom_score_adj.patch @@ -21,7 +21,7 @@ Index: src/auditd.c + /* Newer kernels (noticed in 2.6.36) */ + oomfd = open("/proc/self/oom_score_adj", O_NOFOLLOW | O_WRONLY); + if (oomfd >= 0) { -+ (void)write(oomfd, "0", 1); ++ (void)write(oomfd, "-1000", sizeof("-1000")); + close(oomfd); + return; + } diff --git a/audit-secondary.spec b/audit-secondary.spec index 9b16099..77f0443 100644 --- a/audit-secondary.spec +++ b/audit-secondary.spec @@ -26,7 +26,7 @@ Summary: Python Bindings for libaudit License: GPLv2+ Group: System/Monitoring Version: 2.0.5 -Release: 1 +Release: 2 Url: http://people.redhat.com/sgrubb/audit/ Source0: audit-%{version}.tar.bz2 Patch1: audit-plugins-path.patch diff --git a/audit.changes b/audit.changes index d5f5e35..846039e 100644 --- a/audit.changes +++ b/audit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 21 10:33:40 UTC 2011 - aj@suse.de + +- Fix value of oom_score_adj. + ------------------------------------------------------------------- Tue Dec 7 21:17:24 UTC 2010 - coolo@novell.com diff --git a/audit.spec b/audit.spec index cba1ca4..657f4ed 100644 --- a/audit.spec +++ b/audit.spec @@ -23,7 +23,7 @@ BuildRequires: gcc-c++ tcpd-devel BuildRequires: kernel-headers >= 2.6.29 Summary: User Space Tools for 2.6 Kernel Auditing Version: 2.0.5 -Release: 1 +Release: 2 License: GPLv2+ Group: System/Monitoring Url: http://people.redhat.com/sgrubb/audit/