[hackers] [slock] add hint for suid to oom error message || Markus Teich

From: <git_AT_suckless.org>
Date: Fri, 29 Jan 2016 22:09:03 +0100 (CET)

commit 1766ecdfd4db86e5d022a8fb951559714eb1e6a4
Author: Markus Teich <markus.teich_AT_stusta.mhn.de>
AuthorDate: Fri Jan 29 22:11:18 2016 +0100
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Fri Jan 29 22:11:18 2016 +0100

    add hint for suid to oom error message

diff --git a/slock.c b/slock.c
index df2d3c6..fa7ec84 100644
--- a/slock.c
+++ b/slock.c
_AT_@ -81,7 +81,7 @@ dontkillme(void)
                 die("buffer too small\n");
 
         if (fd < 0 || write(fd, value, length) != length || close(fd) != 0)
- die("cannot disable the out-of-memory killer for this process\n");
+ die("cannot disable the out-of-memory killer for this process (make sure to suid or sgid slock)\n");
 }
 #endif
 
Received on Fri Jan 29 2016 - 22:09:03 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 29 2016 - 22:12:19 CET