[Grml] Re: Normal user not permitted for pci scan
Michael Prokop
mika at grml.org
Sun Oct 8 23:15:48 CEST 2006
* T <mlist4suntong at yahoo.com> [20061008 17:15]:
> On Sun, 08 Oct 2006 01:56:26 +0200, Michael Prokop wrote:
> >> when I tried to use the xvidix driver for mplayer, I get
> >> "Error occurred during pci scan: Operation not permitted" error for
> >> normal user, but root is ok....
[...]
> Yes, using multiple -v produced more debug info, but no, still not enough
> for our situation:
> CommandLine: '-v' '-v' '-v' '-v' '-dr' '-vo' 'xvidix' ...
> [...]
> No vidix driver name provided, probing available ones (-v option for details)!
> vosub_vidix: vidix_preinit((null)) was called
> vidixlib: PROBING: /usr/lib/mplayer/vidix/mga_vid.so
> [mga] probe
> [mga] Error occurred during pci scan: Operation not permitted
> vidixlib: PROBING: /usr/lib/mplayer/vidix/mach64_vid.so
[...]
> 10541 open("/dev/dhahelper", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
> ^^^^^^^^^^^
> 10541 iopl(0x3) = -1 EPERM (Operation not permitted)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There !!!
> Compare with what root get:
> [...]
> 10751 iopl(0x3) = 0
> 10751 iopl(0) = 0
> 10751 write(1, "[radeon] Found chip: RV280 [Rade"..., 44) = 44
> 10751 uname({sys="Linux", node="cxmr.dyndns.org", ...}) = 0
> 10751 socket(PF_FILE, SOCK_STREAM, 0) = 6
> [...]
> So, what's about the "iopl(0x3)"?
Ok, so AFAICS vidix is userspace working with IO which requires root
privileges (see http://www.die.net/doc/linux/man/man2/iopl.2.html
regarding syscall iopl).
So try to deactivate the pci scan via specifying the driver manually
(IIRC it's radeon on your box): "mplayer -vo xvidix:radeon ..."
If that does not work too it seems you have to install mplayer with
suid set or run mplayer as root when using the xvidix stuff.
regards,
-mika-
--
You like grml? Help us! http://grml.org/donations/
Already on the grml-user-map? http://www.frappr.com/grmlusers
The Grml Planet http://planet.grml.org/
Grml Solutions http://solutions.grml.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.mur.at/pipermail/grml/attachments/20061008/3eee8a56/attachment.pgp
More information about the Grml
mailing list