From 0f320c7d887c272908e85864f3d07a53f440fc39 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 23 Sep 2011 13:11:36 +0200 Subject: [PATCH] Added cap_net_raw to the capabilities that are not dropped --- CONTRIBUTORS | 1 + HISTORY | 3 ++- vdr.c | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e8a7652b..b0538472 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2782,3 +2782,4 @@ Chris Mayo Dominic Evans for making the SVDRP command LSTC accepts channel IDs + for adding cap_net_raw to the capabilities that are not dropped diff --git a/HISTORY b/HISTORY index 4e0c3e4d..f39fcda4 100644 --- a/HISTORY +++ b/HISTORY @@ -6743,7 +6743,7 @@ Video Disk Recorder Revision History extends over TS packet boundaries is now done by locally skipping TS packets in cFrameDetector. -2011-09-18: Version 1.7.22 +2011-09-23: Version 1.7.22 - Fixed scaling subtitles in case the primary device's GetVideoSize() function doesn't return actual values (thanks to Luca Olivetti). @@ -6760,3 +6760,4 @@ Video Disk Recorder Revision History - The SVDRP command LSTC now also accepts channel IDs (thanks to Dominic Evans). - Fixed handling DVB subtitles and implemented decoding textual DVB subtitles (thanks to Rolf Ahrenberg). +- Added cap_net_raw to the capabilities that are not dropped (thanks to Dominic Evans). diff --git a/vdr.c b/vdr.c index a599d7c9..b546b2a4 100644 --- a/vdr.c +++ b/vdr.c @@ -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 @@ -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;