Containerized office ?

People focus on running a browser in a jail.
But i'm interested in running libre-office and open-office in a jail.
How ? Because we can expect X forwarding problems.
 
I do the following. Seems to work fine.

On host
Code:
# ln /tmp/.X11-unix/X0 /jail/myjail/tmp/.X11-unix/X0
# cp /home/myuser/.Xauthority /jail/myjail/home/myuser/.Xauthority

In jail
Code:
$ DISPLAY=:0 libreoffice
 
Why not use a standard tool (xhost) to manage access to the socket and treat the jail as remote host?
 
Why not use a standard tool (xhost) to manage access to the socket and treat the jail as remote host?
Mainly because I don't really want to get the network stack involved (even localhost / loopback). It is slower than UNIX sockets and a Libreoffice jail should probably remain completely isolated.
 
not sure freebsd is the best tool for user based sandboxing .. you may want to look at openbsd, specifically pledge and unveil .. its more geared towards what your looking to do .. hopefully they will become apart of the freebsd base .. sooner then later..
 
Back
Top