diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-09-23 13:11:36 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-09-23 13:11:36 +0200 |
commit | 0f320c7d887c272908e85864f3d07a53f440fc39 (patch) | |
tree | f8e6ec560045458e55a5b28b245dd62366f23a7c /vdr.c | |
parent | 0ecf6b00d43a2f2a372ff0b8b0abd8a75b3c0f0e (diff) | |
download | vdr-0f320c7d887c272908e85864f3d07a53f440fc39.tar.gz vdr-0f320c7d887c272908e85864f3d07a53f440fc39.tar.bz2 |
Added cap_net_raw to the capabilities that are not dropped
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 2.24 2011/09/10 15:03:23 kls Exp $ + * $Id: vdr.c 2.25 2011/09/23 13:09:37 kls Exp $ */ #include <getopt.h> @@ -116,7 +116,7 @@ static bool SetUser(const char *UserName, bool UserDump)//XXX name? static bool DropCaps(void) { // drop all capabilities except selected ones - cap_t caps = cap_from_text("= cap_sys_nice,cap_sys_time=ep"); + cap_t caps = cap_from_text("= cap_sys_nice,cap_sys_time,cap_net_raw=ep"); if (!caps) { fprintf(stderr, "vdr: cap_from_text failed: %s\n", strerror(errno)); return false; |