I have some update on the problem but I still don't know how to solve the problem. On further investigation, I notice that when a user logins to his desktop, there is X11 socket created on /tmp directory, and the socket call arrives in MKNOD function (non-FIFO mode), where it fails with "Operation not permitted". There is why I got blank desktop with no dock.
I also tried without OsxFuse by changing the /tmp directory to soft link to another dir, say /mytmp. I also got the same problem with blank desktop when the user is logging in. Can anyone suggest how can I change /tmp dir on Mac OS X?
Is there any special extended attributes that I need to add to the new temp directory?
Thanks for any information!