1 |
Dear Bo, Hans-Werner, and Richard, |
2 |
I wish at first to thank you for your help. |
3 |
Then, I think that a small recap could be useful. |
4 |
Please, select a fixed font ;-) |
5 |
|
6 |
a) vmwarearts (in vmware-dsp): |
7 |
|
8 |
user libvmdsp.so result |
9 |
------ ----------- ----------- |
10 |
normal chmod -s no preload |
11 |
root chmod -s no /dev/dsp |
12 |
normal chmod +s no preload |
13 |
root chmod +s no /dev/dsp |
14 |
|
15 |
b) aoss32 (in alsa-oss): |
16 |
|
17 |
user emul/.../libaoss.so.0.0.0 result |
18 |
------ ------------------------- ---------- |
19 |
normal chmod -s no preload |
20 |
root chmod -s no preload |
21 |
normal chmod +s no preload |
22 |
root chmod +s no preload |
23 |
|
24 |
c) aoss (in alsa-oss): |
25 |
|
26 |
user libaoss.so.0.0.0 result |
27 |
------ ---------------- ---------- |
28 |
normal chmod -s no preload |
29 |
root chmod -s sound works |
30 |
normal chmod +s no preload |
31 |
root chmod +s sound works |
32 |
|
33 |
As to: |
34 |
Richard: |
35 |
> Sergio, try doing chmod +s on /emul/linux/x86/usr/lib/libaoss.so |
36 |
There is no such file! |
37 |
|
38 |
Now: |
39 |
|
40 |
i) I can't understand why root can't open /dev/dsp when running |
41 |
vmwarearts. I can only guess that aoss works better ;-) |
42 |
|
43 |
ii) suid and sgid bits look insignificant (!) |
44 |
|
45 |
Hans-Werner Hilse: |
46 |
> You answered my last question about why you are mocking with "chmod |
47 |
> +s" with something along the lines of "I felt like I had to". What |
48 |
> makes you think you have to? Why should those libraries be set with |
49 |
> setuid? |
50 |
|
51 |
Sorry, my answer was evasive because I've googled a lot and can't |
52 |
remember where I've read that I had to ;-) |
53 |
However, I also tried installing vmwaredsp-1.3 manually, and in the |
54 |
install script, runme.sh, there is the line: |
55 |
install -c -m 4444 64/libvmdsp.so $LIB64/libvmdsp.so |
56 |
(but even the vmwarearts in this package does not work). |
57 |
Richard's answer: |
58 |
|
59 |
> This is necessary because vmware is a setuid executable, |
60 |
> and you cannot use LD_PRELOAD with setuid executables |
61 |
> unless those libraries are *also* setuid. |
62 |
|
63 |
look very interesting, because, as far as I can understand.... |
64 |
|
65 |
testing ~ # cd /opt/vmware/workstation/bin |
66 |
testing bin # l |
67 |
total 1872 |
68 |
-rwxr-xr-x 1 root root 12292 Nov 1 00:20 vm-support* |
69 |
-rwxr-xr-x 1 root root 6160 Nov 1 00:20 vmnet-bridge* |
70 |
-rwxr-xr-x 1 root root 110872 Nov 1 00:20 vmnet-dhcpd* |
71 |
-rwxr-xr-x 1 root root 118884 Nov 1 00:20 vmnet-natd* |
72 |
-rwxr-xr-x 1 root root 5192 Nov 1 00:20 vmnet-netifup* |
73 |
-rwxr-xr-x 1 root root 8140 Nov 1 00:20 vmnet-sniffer* |
74 |
-rwxr-xr-x 1 root root 4574 Nov 1 00:20 vmplayer* |
75 |
-rwxr-xr-x 1 root root 4946 Nov 1 00:20 vmrun* |
76 |
-rwxr-xr-x 1 root root 4570 Nov 1 00:20 vmware* |
77 |
-rwxr-xr-x 1 root root 268975 Nov 1 00:20 vmware-config.pl* |
78 |
-rwxr-xr-x 1 root root 486368 Nov 1 00:20 vmware-loop* |
79 |
-rwxr-xr-x 1 root root 25488 Nov 1 00:20 vmware-mount.pl* |
80 |
-rws--x--- 1 root vmware 10852 Nov 1 00:20 vmware-ping* |
81 |
-rwxr-xr-x 1 root root 90467 Nov 1 00:20 vmware-uninstall.pl* |
82 |
-rwxr-xr-x 1 root root 694312 Nov 1 00:20 vmware-vdiskmanager* |
83 |
testing bin # |
84 |
|
85 |
my vmware *is not* setuid! |
86 |
However, nothing changes if I do chmod +s on libaoss *and* vmware: |
87 |
sound only works when I am root, otherwise libaoss is not preloaded. |
88 |
|
89 |
BTW, I've installed Ubunto 6.10 and looked at what happened. |
90 |
Well.... vmwareesd... works!!! |
91 |
Linux kernel: 2.6.17 i686 |
92 |
glibc: 2.4 |
93 |
libvmdsp.so: setuid (!) |
94 |
|
95 |
I am in the dark. Also because googling around I can see that a |
96 |
similar "preload" problem occurs rather often in several different |
97 |
cases, but there is seldom a solution.... |
98 |
|
99 |
Eventually I'll run vmware as root when I'll need sound ;-) |
100 |
|
101 |
Thanks again |
102 |
Sergio |
103 |
-- |
104 |
gentoo-user@g.o mailing list |