On Fri, Feb 17, 2012 at 5:22 AM, DRC <dcomman...@users.sourceforge.net> wrote: > On 2/16/12 8:02 AM, Meowthink wrote: >>> Did you chmod u+s on librrfaker.so and libdlfaker.so? See the VirtualGL >>> User's Guide, both Chapters 14 and 12. >> >> Oh, I used an admin account in group wheel, so I doubt the problem is >> permission. >> I tested using vgl as root. Works like a charm! >> >> But by default, I can't vglconnect as root (actually, ssh as root) to >> a FreeBSD system - I mean, using root remotely is not a good thing. So >> I tried chmod g+s: >> >> $ ls -l /opt/VirtualGL/lib >> total 1056 >> -rwsr-sr-x 1 root wheel 7412 Feb 15 11:59 libdlfaker.so >> -rwxr-xr-x 1 root wheel 6999 Feb 15 11:59 libgefaker.so >> -rwsr-sr-x 1 root wheel 980625 Feb 15 12:04 librrfaker.so >> >> Still not work. Seems like I misunderstand what setuid executables are. > > > I asked whether you tried chmod u+s, not chmod g+s. They are different > things.
Hello DRC, After some deeper studies, I think this could be considered not working on FreeBSD. When executing a setuid binary on FreeBSD, it simply rejects everything LD_PRELOAD specified. This is described and coded in libexec/rtld.c around line 340. This behavior is different than what Linux does(and what VirtualGL+VirtualBox relies on), which will check & load libraries that has setuid permission, if they're specified in LD_PRELOAD. Any idea on proposal workaround? Regards, Meowthink > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > VirtualGL-Devel mailing list > VirtualGL-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtualgl-devel ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ VirtualGL-Devel mailing list VirtualGL-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtualgl-devel