[MPlayer-dev-eng] [PATCH] adjusting nice level from config/command line

Brian J. Murrell 34486d19b925c8d9ee392de374b7ef4b at interlinx.bc.ca
Tue May 28 01:04:56 CEST 2002


On Mon, May 27, 2002 at 05:57:26PM -0400, D Richard Felker III wrote:
> 
> No, this is impossible -- it will break subsequent vo initialization
> if the user is using DGA, svgalib, etc.

I have not looked in detail at the specifics of each of the vo's that
have this problem so I have to believe that you are right.  I have no
reason not to.  :-)

There are a couple of ways to handle this problem though.  One is
POSIX capabilities (if such devices are protected by capabilities) and
the other is "pam-console".  The latter sets ownership of devices that
should only be accessed by the user at the console to his uid
(keyboard, mouse, video out, cd-rom, etc.).

> There's really no good way to
> do it. IMO any vo/ao or other feature that needs root is inherently
> broken and should be fixed/removed so that permissions to open a
> relevant device node are sufficient.

Well, the argument could be made that a user at the console of a
workstation should have ownership and access to the input/output
hardware of the worksation.

> Read my earlier post in this thread for an explanation why none of
> this works.

Indeed.  I did.  I have not ventured enough to do the pam-console work
to make this work yet, but I also don't use a "root-needed" vo or ao's
that my distro does not already bestow the workstation user's
ownership upon.  I do have a Radeon and I suppose I could use vidix
with it, but Xvideo seems to work well enough with it.

b.

-- 
Brian J. Murrell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020527/1881cff2/attachment.pgp>


More information about the MPlayer-dev-eng mailing list