From: Sergio Polini <sp_rm_it@yahoo.it>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] WinXP under VMWare: no sound
Date: Wed, 8 Nov 2006 22:24:42 +0100 [thread overview]
Message-ID: <200611082224.42678.sp_rm_it@yahoo.it> (raw)
In-Reply-To: <20061108170408.006c6f33.hilse@web.de>
Dear Bo, Hans-Werner, and Richard,
I wish at first to thank you for your help.
Then, I think that a small recap could be useful.
Please, select a fixed font ;-)
a) vmwarearts (in vmware-dsp):
user libvmdsp.so result
------ ----------- -----------
normal chmod -s no preload
root chmod -s no /dev/dsp
normal chmod +s no preload
root chmod +s no /dev/dsp
b) aoss32 (in alsa-oss):
user emul/.../libaoss.so.0.0.0 result
------ ------------------------- ----------
normal chmod -s no preload
root chmod -s no preload
normal chmod +s no preload
root chmod +s no preload
c) aoss (in alsa-oss):
user libaoss.so.0.0.0 result
------ ---------------- ----------
normal chmod -s no preload
root chmod -s sound works
normal chmod +s no preload
root chmod +s sound works
As to:
Richard:
> Sergio, try doing chmod +s on /emul/linux/x86/usr/lib/libaoss.so
There is no such file!
Now:
i) I can't understand why root can't open /dev/dsp when running
vmwarearts. I can only guess that aoss works better ;-)
ii) suid and sgid bits look insignificant (!)
Hans-Werner Hilse:
> You answered my last question about why you are mocking with "chmod
> +s" with something along the lines of "I felt like I had to". What
> makes you think you have to? Why should those libraries be set with
> setuid?
Sorry, my answer was evasive because I've googled a lot and can't
remember where I've read that I had to ;-)
However, I also tried installing vmwaredsp-1.3 manually, and in the
install script, runme.sh, there is the line:
install -c -m 4444 64/libvmdsp.so $LIB64/libvmdsp.so
(but even the vmwarearts in this package does not work).
Richard's answer:
> This is necessary because vmware is a setuid executable,
> and you cannot use LD_PRELOAD with setuid executables
> unless those libraries are *also* setuid.
look very interesting, because, as far as I can understand....
testing ~ # cd /opt/vmware/workstation/bin
testing bin # l
total 1872
-rwxr-xr-x 1 root root 12292 Nov 1 00:20 vm-support*
-rwxr-xr-x 1 root root 6160 Nov 1 00:20 vmnet-bridge*
-rwxr-xr-x 1 root root 110872 Nov 1 00:20 vmnet-dhcpd*
-rwxr-xr-x 1 root root 118884 Nov 1 00:20 vmnet-natd*
-rwxr-xr-x 1 root root 5192 Nov 1 00:20 vmnet-netifup*
-rwxr-xr-x 1 root root 8140 Nov 1 00:20 vmnet-sniffer*
-rwxr-xr-x 1 root root 4574 Nov 1 00:20 vmplayer*
-rwxr-xr-x 1 root root 4946 Nov 1 00:20 vmrun*
-rwxr-xr-x 1 root root 4570 Nov 1 00:20 vmware*
-rwxr-xr-x 1 root root 268975 Nov 1 00:20 vmware-config.pl*
-rwxr-xr-x 1 root root 486368 Nov 1 00:20 vmware-loop*
-rwxr-xr-x 1 root root 25488 Nov 1 00:20 vmware-mount.pl*
-rws--x--- 1 root vmware 10852 Nov 1 00:20 vmware-ping*
-rwxr-xr-x 1 root root 90467 Nov 1 00:20 vmware-uninstall.pl*
-rwxr-xr-x 1 root root 694312 Nov 1 00:20 vmware-vdiskmanager*
testing bin #
my vmware *is not* setuid!
However, nothing changes if I do chmod +s on libaoss *and* vmware:
sound only works when I am root, otherwise libaoss is not preloaded.
BTW, I've installed Ubunto 6.10 and looked at what happened.
Well.... vmwareesd... works!!!
Linux kernel: 2.6.17 i686
glibc: 2.4
libvmdsp.so: setuid (!)
I am in the dark. Also because googling around I can see that a
similar "preload" problem occurs rather often in several different
cases, but there is seldom a solution....
Eventually I'll run vmware as root when I'll need sound ;-)
Thanks again
Sergio
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-11-08 21:32 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 [this message]
2006-11-08 21:56 ` Sergio Polini
2006-11-08 22:28 ` Richard Fish
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=200611082224.42678.sp_rm_it@yahoo.it \
--to=sp_rm_it@yahoo.it \
--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