How to hide subdirectories in CageFS?
For example we'd like to hide the /opt/scripts and the /opt/databases directories for users, but the /opt is mounted in the /etc/cagefs/cagefs.mp.
There is a solution on how to hide a directory inside mount point.
1. Create the /etc/cagefs/empty.dirs/custom.empty.dirs file with list of directories to hide. In this example, with /opt/scripts and /opt/databases.
2. Run the following command: