At the moment I can't use Wayland on my systems, but I can use x11.I have been reading that Wayland is a replacement for X, so I searched the Web but there's nothing about configuraing Wayland to work in Jails. Does Wayland work in jails? If not, should I still stick with X? Some advice would be appreciated.
For security reasons, I'd like to isolate some apps within some form of containerization (like jails). Is it possible to set up an app - say, for example, like Firefox - to run inside a jail and a window will show up? I don't care if it is using forward session or something else, I just would like an app inside a jail to show up in the graphical environment.Usually you can't even use a computer in jail, but if you manage to bribe the guards, then it might be possible...
On a serious note, why would you want to do that? Do you mean separate desktop apps in jail (like Firefox), while running in Wayland? Or the whole desktop environment? I think when you run X app in jail, you have to forward the session somehow. I'm not sure if that's possible in Wayland.
Oh, and what if you download a file, like a patch from bugzilla? How do you share your home directory without compromising your jail with an unintended backdoor? Sharing directories, like a home directory, with a jail is like locking the front door and leaving the back door unlocked and propped open.
I wasn't asking how this was done, mechanically, but how would you mitigate the risks of sharing directories between a jail and the host system?I do it by creating jail users with the same uid as my non-privileged user on the host. Also create dirs and chmod them to the correct uid. Now permissions just work, and I can view / modify jail files from the host.