1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added cap_net_raw to the capabilities that are not dropped

This commit is contained in:
Klaus Schmidinger 2011-09-23 13:11:36 +02:00
parent 0ecf6b00d4
commit 0f320c7d88
3 changed files with 5 additions and 3 deletions

View File

@ -2782,3 +2782,4 @@ Chris Mayo <aklhfex@gmail.com>
Dominic Evans <oldmanuk@gmail.com>
for making the SVDRP command LSTC accepts channel IDs
for adding cap_net_raw to the capabilities that are not dropped

View File

@ -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).

4
vdr.c
View File

@ -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;