An ubus RPC daemon for Liminix
Find a file
Jo-Philipp Wich 2423162234 uci: switch to proper save directory on apply/rollback
The existing code failed to set the uci cursor save directory to the current
session path, causing the apply routine to either fail or to merge settings
from unrelated neighboring sessions, potentially leaking data.

Solve the issue by switching the uci cursor save directory to the session
directory before performing the actual apply actions.

Additionally set the save directory path to "/dev/null" during rollback, to
avoid merging unrelated system wide uci changes when restoring configs from
the snapshot directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-20 13:15:46 +02:00
include/rpcd session: support reclaiming pending apply session 2018-03-15 12:29:15 +01:00
CMakeLists.txt cmake: Find libubox/blobmsg_json.h 2016-12-11 09:16:30 +01:00
exec.c Extend copyright 2014-01-12 12:48:58 +00:00
file.c file: add myself in Copyright header 2016-04-12 17:15:27 +02:00
iwinfo.c iwinfo: expose available HT rates 2016-06-30 00:36:01 +02:00
main.c paths: substitute literal with macro 2015-11-20 18:00:28 +01:00
plugin.c plugin: use RTLD_LOCAL instead of RTLD_GLOBAL when loading library 2017-11-09 15:49:15 +01:00
session.c session: ignore non-string username attribute upon restore 2018-03-15 12:29:15 +01:00
sys.c sys: packagelist: allow listing all packages 2017-12-06 18:44:23 +01:00
uci.c uci: switch to proper save directory on apply/rollback 2018-04-20 13:15:46 +02:00
unauthenticated.json session: setup a persistent NULL section and implement login procedure 2013-09-10 19:56:36 +02:00