[LEDE-DEV] ujail bug/feature with file replacement with mv
Etienne Champetier
champetier.etienne at gmail.com
Thu Jun 16 07:45:31 PDT 2016
Hi,
Just a heads up,
ujail uses "bind mount" to include file and directories into the jail,
so if you include a file named aaa (procd_add_jail_mount(_rw) aaa),
and then replace it outside of the jail using "mv bbb aaa",
in the jail you will still have file aaa.
Workaround is to use a directory instead of a file.
This might be usefull to remember if you try to change a config file
atomically with mv and signal the process.
Regards
Etienne
More information about the Lede-dev
mailing list