IgnorantGuru / sandfox

Runs Firefox and other apps in a filesystem sandbox
http://igurublog.wordpress.com/downloads/script-sandfox/
GNU General Public License v3.0
39 stars 7 forks source link

Broken links in the skype sandbox #3

Open quasus opened 9 years ago

quasus commented 9 years ago

I've just installed sandfox on Arch from AUR, but skype won't work. If I run sandbox skype as root, nothing happens. Further, mimicking sandfox, I get

chroot /mnt/sandfox/skype/ /bin/su me -c "file /usr/lib32/skype/skype"

/usr/lib32/skype/skype: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=6eef9a3f7c9719980b6e317a00ea971d3717ac89, stripped
# chroot /mnt/sandfox/skype/ /bin/su me -c "file /lib/ld-linux.so.2"
/lib/ld-linux.so.2: broken symbolic link to ../lib32/ld-linux.so.2

so apparently there's a problem with the interpreter. Moreover, there are quite a lot of broken symlinks:

find /mnt/sandfox/skype/ -type l -xtype l

/mnt/sandfox/skype/lib64/firefox/hyphenation
/mnt/sandfox/skype/lib64/firefox/dictionaries
/mnt/sandfox/skype/lib64/terminfo
/mnt/sandfox/skype/lib64/ld-linux.so.2
/mnt/sandfox/skype/lib/firefox/hyphenation
/mnt/sandfox/skype/lib/firefox/dictionaries
/mnt/sandfox/skype/lib/terminfo
/mnt/sandfox/skype/lib/ld-linux.so.2
/mnt/sandfox/skype/bin/core_perl/psed
/mnt/sandfox/skype/usr/lib/firefox/hyphenation
/mnt/sandfox/skype/usr/lib/firefox/dictionaries
/mnt/sandfox/skype/usr/bin/core_perl/psed
/mnt/sandfox/skype/usr/share/licenses/lib32-systemd
/mnt/sandfox/skype/usr/share/icons/hicolor/scalable/mimetypes/application-x-zip-compressed-fb2.svg
/mnt/sandfox/skype/etc/systemd/system/sleep.target.wants/tlp-sleep.service
/mnt/sandfox/skype/etc/systemd/system/multi-user.target.wants/tlp.service
/mnt/sandfox/skype/etc/mtab
IgnorantGuru commented 9 years ago

Thanks for the report. This seems similar to #2. I don't personally use or test Skype. The profile was user-contributed. It has been working well in general, but different distros seem to install Skype libs in different places, and there is the lib32 vs lib64 location issues.

Overall, you'll need to find where Skype's libs actually are and adjust /etc/sandfox/skype.profile accordingly. See tips. If you let us know which binds were missing and need to be added, I'll consider adding them to Sandfox's default Skype profile.

As for:

find /mnt/sandfox/skype/ -type l -xtype l

It's not unusual for there to be broken links in a system. The sandbox is merely inheriting those, not creating them, so that's not necessarily something to be concerned with. If one of the broken links is a file that Skype needs, then again the profile may need to be adjusted for Arch's setup and your architecture.

IgnorantGuru commented 9 years ago

Also, Arch's original Sandfox forum thread is here - you might ask what other Arch users are using for their Skype profile. Or search their forums for "sandfox".