diff options
author | Simon Rettberg | 2021-04-27 14:29:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-27 14:29:51 +0200 |
commit | 24e52a3c38c027af438fe6dc0a577dd44202b4a0 (patch) | |
tree | 28faf503c8fbed26a5e60ee6e7390a8df77c06b5 /core/modules/run-virt/pw_daemon.c | |
parent | [vmware-common] Increase OS HW limits, move VMware specific limits (diff) | |
download | mltk-24e52a3c38c027af438fe6dc0a577dd44202b4a0.tar.gz mltk-24e52a3c38c027af438fe6dc0a577dd44202b4a0.tar.xz mltk-24e52a3c38c027af438fe6dc0a577dd44202b4a0.zip |
[run-virt] Honor SLX_PRINT_REUSE_PASSWORD for pwdaemon
Diffstat (limited to 'core/modules/run-virt/pw_daemon.c')
-rw-r--r-- | core/modules/run-virt/pw_daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/run-virt/pw_daemon.c b/core/modules/run-virt/pw_daemon.c index 0c9508a3..f25ffffc 100644 --- a/core/modules/run-virt/pw_daemon.c +++ b/core/modules/run-virt/pw_daemon.c @@ -149,7 +149,10 @@ static int mode_daemon(const uid_t uidNumber) const char *envuser = getenv("USERNAME"); volatile char *envpass = getenv("PASSWORD"); const char *pwsocket = getenv("PWSOCKET"); + const char *localstr = getenv("LOCAL_PW"); + int allowLocal = localstr != NULL && atoi(localstr); gid_t gidNumber = 65534; + memset(&addr, 0, sizeof(addr)); memset(&sig, 0, sizeof(sig)); if (envuser == NULL) { |