From 4c9eb513d67d0b6261da7579d21a00079a3deaea Mon Sep 17 00:00:00 2001 From: "Czarnowski, Przemyslaw" Date: Wed, 21 Apr 2021 15:09:28 +0200 Subject: Remove samba mount parameters logging SMB share when mounted leaved a trace in journal with parameters passed with mount command. Among others password and user name has been included what raises security issue. Tested: Manually, SMB mount does not reveal share credentials in logs any more Change-Id: I30abbe085620c95d42b19f19d94285a211024cf4 Signed-off-by: Czarnowski, Przemyslaw --- src/smb.hpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/smb.hpp b/src/smb.hpp index a1caf89..6a0db0b 100644 --- a/src/smb.hpp +++ b/src/smb.hpp @@ -67,7 +67,6 @@ class SmbShare const std::string& version) { options += "," + version; - LogMsg(Logger::Debug, "Mounting with options: ", options); auto ec = ::mount(remote.c_str(), mountDir.c_str(), "cifs", 0, options.c_str()); -- cgit v1.2.3