session: support reclaiming pending apply session
authorJo-Philipp Wich <jo@mein.io>
Thu, 15 Mar 2018 10:22:47 +0000 (11:22 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Mar 2018 11:29:15 +0000 (12:29 +0100)
commit3d400c723b332915683e7b290406753b9cd4391d
tree5474835cc3a79c0835b62cbbc03f45974f2f1cab
parentf0f6f81edb56bd43b63ffde9eeb52efe1ce833b8
session: support reclaiming pending apply session

Reclaim the pending apply session upon login when the username matches the
current login.

This is required to support apply-confirm-rollback workflow for ubus browser
clients, since changing IPs requires re-login to the device due to cross
domain restrictions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
include/rpcd/session.h
session.c
uci.c