On 31/03/2008, Jeff Dike <[EMAIL PROTECTED]> wrote:
> Now, if you straced eject at this point, you would see
>
>      ioctl(<n>, CDROMEJECT, 0x1)              = 0
>  ?
Yes, it should be. But it isn't.

>
>  If so, what's the difference between eject and UML?
I guess you mean the difference between eject on the host and eject on
the UML guest. If so, this is the eject strace output on the host:
ioctl(3, CDROMEJECT, 0x1)               = 0

This is the eject strace output in UML:
ioctl(16, CDROMEJECT, 0x1)              = -1 EIO (Input/output error)

> Are you running
>  eject as root?
Of course.

> Is the eject binary setuid root?  That's the basic
>  question that's underlying this problem.

HOST System:
GentooLinux# ls -l /usr/bin/eject
-rwxr-xr-x 1 root root 24184 Feb 17  2007 /usr/bin/eject

UML:
DebianUML:~# ls -l /usr/bin/eject
-rwxr-xr-x 1 root root 23960 Oct 29 00:07 /usr/bin/eject

Flavio

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to