summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2021-04-21 16:09:28 +0300
committerCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2021-04-22 00:21:10 +0300
commit4c9eb513d67d0b6261da7579d21a00079a3deaea (patch)
treec538c1922cdb993cc500bde1a6f4e2650f8b5c6d
parent894132d3b0e7755907bbebba5c3425768ab1150f (diff)
downloadvirtual-media-4c9eb513d67d0b6261da7579d21a00079a3deaea.tar.xz
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 <przemyslaw.hawrylewicz.czarnowski@intel.com>
-rw-r--r--src/smb.hpp1
1 files changed, 0 insertions, 1 deletions
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());