mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added cap_sys_nice to the capabilities that are not dropped
This commit is contained in:
parent
9a7473eaf3
commit
6a6aac9dd3
@ -1061,6 +1061,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
|
|||||||
the last replayed recording was in a subdirectory, and pressing Back
|
the last replayed recording was in a subdirectory, and pressing Back
|
||||||
for setting the thread name, so that it can be seen in 'top -H'
|
for setting the thread name, so that it can be seen in 'top -H'
|
||||||
for replacing the Finnish language code "smi" with "suo"
|
for replacing the Finnish language code "smi" with "suo"
|
||||||
|
for adding cap_sys_nice to the capabilities that are not dropped
|
||||||
|
|
||||||
Ralf Klueber <ralf.klueber@vodafone.com>
|
Ralf Klueber <ralf.klueber@vodafone.com>
|
||||||
for reporting a bug in cutting a recording if there is only a single editing mark
|
for reporting a bug in cutting a recording if there is only a single editing mark
|
||||||
|
4
HISTORY
4
HISTORY
@ -5979,8 +5979,10 @@ Video Disk Recorder Revision History
|
|||||||
cDevice class reimplements PlayTs() or PlayPes(), it also needs to make sure this
|
cDevice class reimplements PlayTs() or PlayPes(), it also needs to make sure this
|
||||||
new function works as expected.
|
new function works as expected.
|
||||||
|
|
||||||
2009-01-30: Version 1.7.5
|
2009-02-01: Version 1.7.5
|
||||||
|
|
||||||
- Fixed a hangup when replaying a TS recording with subtitles activated (reported
|
- Fixed a hangup when replaying a TS recording with subtitles activated (reported
|
||||||
by Timo Helkio).
|
by Timo Helkio).
|
||||||
- Fixed handling the 'new' indicator in the recordings menu for TS recordings.
|
- Fixed handling the 'new' indicator in the recordings menu for TS recordings.
|
||||||
|
- Added cap_sys_nice to the capabilities that are not dropped (thanks to Rolf
|
||||||
|
Ahrenberg).
|
||||||
|
10
vdr.c
10
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/vdr
|
* The project's page is at http://www.cadsoft.de/vdr
|
||||||
*
|
*
|
||||||
* $Id: vdr.c 2.4 2009/01/18 11:02:37 kls Exp $
|
* $Id: vdr.c 2.5 2009/02/01 10:13:48 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -112,10 +112,10 @@ static bool SetUser(const char *UserName, bool UserDump)//XXX name?
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool SetCapSysTime(void)
|
static bool DropCaps(void)
|
||||||
{
|
{
|
||||||
// drop all capabilities except cap_sys_time
|
// drop all capabilities except selected ones
|
||||||
cap_t caps = cap_from_text("= cap_sys_time=ep");
|
cap_t caps = cap_from_text("= cap_sys_nice,cap_sys_time=ep");
|
||||||
if (!caps) {
|
if (!caps) {
|
||||||
fprintf(stderr, "vdr: cap_from_text failed: %s\n", strerror(errno));
|
fprintf(stderr, "vdr: cap_from_text failed: %s\n", strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
@ -387,7 +387,7 @@ int main(int argc, char *argv[])
|
|||||||
return 2;
|
return 2;
|
||||||
if (!SetKeepCaps(false))
|
if (!SetKeepCaps(false))
|
||||||
return 2;
|
return 2;
|
||||||
if (!SetCapSysTime())
|
if (!DropCaps())
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user