forked from pool/audit
Accepting request 62286 from security
Accepted submit request 62286 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/62286 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/audit?expand=0&rev=43
This commit is contained in:
commit
68242b9c50
@ -21,7 +21,7 @@ Index: src/auditd.c
|
|||||||
+ /* Newer kernels (noticed in 2.6.36) */
|
+ /* Newer kernels (noticed in 2.6.36) */
|
||||||
+ oomfd = open("/proc/self/oom_score_adj", O_NOFOLLOW | O_WRONLY);
|
+ oomfd = open("/proc/self/oom_score_adj", O_NOFOLLOW | O_WRONLY);
|
||||||
+ if (oomfd >= 0) {
|
+ if (oomfd >= 0) {
|
||||||
+ (void)write(oomfd, "0", 1);
|
+ (void)write(oomfd, "-1000", sizeof("-1000"));
|
||||||
+ close(oomfd);
|
+ close(oomfd);
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
|
@ -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
|
Tue Dec 7 21:17:24 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user