Closed ypid closed 8 years ago
This is using the latest subuser from git? I don't have this problem, but I'm certainly looking into it.
Yes I was using latest master.
Can you please pull the latest master and give me the full output of:
$ SUBUSER_DEBUG_XPRA=TRUE SUBUSER_VERBOSITY=5 subuser run keepassx
I put the logs here: https://github.com/ypid/subuser-x11-xpra-issue Test system is a Virtualbox VM running Debian Jessie but I was also testing on a bare metal Debian Jessie system. Maybe you can reproduce this also.
Just a note. I am going with Firejail for lightweight compartmentalization in AppVMs https://github.com/ypid/firejail-scripts I got xpra working with it. Thanks again for your work :+1:
I just noticed: /var/local/testuser
Is that really the value of $HOME
? It seems the problem is a permissions problem in writting to that directory... I'm still not sure what could be causing thhat, because it appears that subuser has no problem writting to that directory up till that point.
What is the reason you chose to go with firejail? Disk space usage? Or seccomp support? Something else?
I just noticed: /var/local/testuser
Yes. That is really the $HOME
. The test system has been setup using Ansible and https://github.com/debops/ansible-bootstrap. Also not sure. I did run it on a normally configured desktop system with the same issue. Maybe you are able to reproduce this bug in a Debian Jessie environment.
What is the reason you chose to go with firejail? Disk space usage? Or seccomp support? Something else?
Makes sense to write a short comparison now that I know both a bit. So here it is:
Pro Subuser:
--private=$NEW_HOME_DIR
flag.About equal:
Pro FireJail
firejail --net=nat0 --netfilter=/etc/firejail/nolocal.net --private
and get a sandbox test environment. Subuser is more centered on only running one program in its own sandbox. What I like to have is just a shell in the sandbox and then do stuff there. On the other hand, I can also use Docker directly for this.Conclusion. I use FireJail for most things. I might consider using Subuser for example when I want to install packages from Debian unstable (althought I found it easier to just fall back to using Docker directly once I had a need for this (OK, quite a special case which probably does not count because of x86-32): https://github.com/ypid/docker-libreoffice-duden). I hope that gave you some insight's from a users perspective. Thanks again for your work.
Reproduced and fixed. This is a nasty-reoccurant bug which is caused by launching a Docker container with a volume that points to a non-existant directory on the host. When you do that, Docker automatically creates the directory and the directory that is created by Docker is owned by root.
Thanks a lot for your patience in reporting this. And also thanks for the thourough analysis of subuser and firejail. I will definitely take your sugestions into account.
Thanks very much for the fix :+1:
When you strace this it seems that it is going thought the whole filesystem.
The programs does this for a few minutes then it terminates with:
Running non X11 programs like Vim works fine.