Project

General

Profile

Actions

Bug #5213

closed

It should be possible to use "-f" even if tvheadend is started as "non-root" user

Added by M. Reimer over 6 years ago. Updated over 6 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-09-19
Due date:
% Done:

0%

Estimated time:
Found in version:
git
Affected Versions:

Description

I want to start tvheadend directly with reduced privileges. Tvheadend doesn't need "root" privileges from the start, so it is a bit more secure to let the init system (systemd in my case) do this job.

This works great if "-f" is not used but fails if I want tvheadend to fork as soon as it is ready.

For some reason "-f" triggers tvheadend to "guess" some user and group and still try to "setuid/setgid", which will fail if tvheadend was started as "non-root".

Is this really required? And if so, why?

I can create a pull request to fix this, but decided to create the issue first to see if it makes sense to create the pull request.

Maybe also to get some feedback on how the "core team" would want me to fix this.

Actions

Also available in: Atom PDF