From 3c556eda35a49d7088d4b5b1ff281854cad94bef Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 6 Aug 2024 20:21:12 -0500 Subject: configd: T6640: enforce in_session returns False under configd The CStore in_session check is a false positive outside of a config session if a specific environment variable is set with an existing referent in unionfs. To allow extensions when running under configd and avoid confusion, enforce in_session returns False. (cherry picked from commit 6543f444c42ff45e8115366256643186bf1dd567) --- src/services/vyos-configd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/services/vyos-configd b/src/services/vyos-configd index a4b839a7f..69ee15bf1 100755 --- a/src/services/vyos-configd +++ b/src/services/vyos-configd @@ -267,6 +267,8 @@ if __name__ == '__main__': cfg_group = grp.getgrnam(CFG_GROUP) os.setgid(cfg_group.gr_gid) + os.environ['VYOS_CONFIGD'] = 't' + def sig_handler(signum, frame): shutdown() -- cgit v1.2.3