summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-08-08 10:02:38 +0100
committerGitHub <noreply@github.com>2024-08-08 10:02:38 +0100
commit7b9d5f016624a4811de326568d6ca93cf073aef0 (patch)
tree791485a1f37a90649bcd2446f2973d83945f17c7 /src
parent7a546896cb971ede7e1003bd7d0ce1f0485cbd72 (diff)
parent6543f444c42ff45e8115366256643186bf1dd567 (diff)
downloadvyos-1x-7b9d5f016624a4811de326568d6ca93cf073aef0.tar.gz
vyos-1x-7b9d5f016624a4811de326568d6ca93cf073aef0.zip
Merge pull request #3955 from jestabro/configd-in-session-false
configd: T6640: enforce in_session returns False under configd
Diffstat (limited to 'src')
-rwxr-xr-xsrc/services/vyos-configd2
1 files changed, 2 insertions, 0 deletions
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()