public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] WinXP under VMWare: no sound
Date: Wed, 8 Nov 2006 15:28:19 -0700	[thread overview]
Message-ID: <7573e9640611081428j33fd8e3eo7c88202ef85e186f@mail.gmail.com> (raw)
In-Reply-To: <200611082224.42678.sp_rm_it@yahoo.it>

On 11/8/06, Sergio Polini <sp_rm_it@yahoo.it> wrote:
> > Sergio,  try doing chmod +s on /emul/linux/x86/usr/lib/libaoss.so
> There is no such file!

Hold up.  Previously you posted:

----
LD_PRELOAD=${exec_prefix}/lib/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD}

[...]

[sp ~]$ ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from
LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from
LD_PRELOAD cannot be preloaded: ignored.
----

If this file doesn't exist, then *that* is why preloading doesn't
work.  If instead you have "emul/.../libaoss.so.0.0.0", then change
the LD_PRELOAD in aoss32 to:

LD_PRELOAD=${exec_prefix}/lib/libaoss.so.0.0.0${LD_PRELOAD:+:$LD_PRELOAD}

I would also add an echo for debugging after that:

echo "running with LD_PRELOAD=$LD_PRELOAD"

> i) I can't understand why root can't open /dev/dsp when running
> vmwarearts. I can only guess that aoss works better ;-)

Since preloading appears to work in this case (no error from that), I
am going to assume that this is actually a failure to contact artsd as
root.  Note that the effect of preloading is to fool vmware into
contacting artsd instead of opening /dev/dsp...so the error can
actually be slightly misreported.

Are you actually logged into KDE as root, or as your normal user?
What happens when you run "artsplay
/usr/kde/3.5/share/sounds/KDE_Startup_1.ogg" as root?  under your user
account?


> ii) suid and sgid bits look insignificant (!)
>
> look very interesting, because, as far as I can understand....
>
> testing ~ # cd /opt/vmware/workstation/bin
[snip]
> -rwxr-xr-x 1 root root     4570 Nov  1 00:20 vmware*

This is a shell script (your clue is the size).  The actual binary
that executes the virtual machine (and this needs to produce sound) is
in /opt/vmware/workstation/lib/bin, and is named vmware-vmx.  It is
almost certainly setuid.

(BTW, I should have said "vmware _uses_ setuid executables")

> my vmware *is not* setuid!
> However, nothing changes if I do chmod +s on libaoss *and* vmware:

No, don't make the shell script setuid.  That would be a security hole.

> sound only works when I am root, otherwise libaoss is not preloaded.

I really don't understand why aoss would only work as root.  I suspect
a path or environment issue here, possibly a different library is
actually being loaded.  I suspect this has more to do with the actual
path to the library being loaded as root versus your user account.

I'm going to try installing workstation on my amd64 desktop and see what I get.

-Richard
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2006-11-08 22:33 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-04 21:41 [gentoo-user] WinXP under VMWare: no sound Sergio Polini
2006-11-04 23:59 ` Richard Fish
2006-11-05  1:02   ` Sergio Polini
2006-11-07  5:44     ` Richard Fish
2006-11-07  5:54       ` Bo Ørsted Andresen
2006-11-07 10:32         ` Bo Ørsted Andresen
2006-11-07 20:47           ` Sergio Polini
2006-11-07 23:16             ` Sergio Polini
2006-11-07 20:38       ` Sergio Polini
2006-11-07 23:21       ` Sergio Polini
2006-11-08  0:08         ` Richard Fish
2006-11-08  7:31           ` Sergio Polini
2006-11-08 16:04             ` Hans-Werner Hilse
2006-11-08 17:30               ` Richard Fish
2006-11-08 21:24               ` Sergio Polini
2006-11-08 21:56                 ` Sergio Polini
2006-11-08 22:28                 ` Richard Fish [this message]
2006-11-09  7:34                   ` Sergio Polini
2006-11-10  3:36                     ` Richard Fish
2006-11-10 20:11                       ` Sergio Polini
2006-11-05 11:55   ` Sergio Polini
2006-11-06 13:36     ` Hans-Werner Hilse
2006-11-06 22:26       ` Sergio Polini
2006-11-07  5:52         ` Richard Fish
2006-11-07  5:50     ` Richard Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640611081428j33fd8e3eo7c88202ef85e186f@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox