Merge pull request #1954 from metalefty/clipboard-file-log

clipboard: log file transfer for the purpose of audit (#1954)
This commit is contained in:
matt335672
2021-08-11 09:19:16 +01:00
committed by GitHub
+4
View File
@@ -445,6 +445,10 @@ clipboard_send_file_data(int streamId, int lindex,
rv = send_channel_data(g_cliprdr_chan_id, s->data, size);
free_stream(s);
g_file_close(fd);
/* Log who transferred which file via clipboard for the purpose of audit */
LOG(LOG_LEVEL_INFO, "S2C: Transfered a file: filename=%s, uid=%d", full_fn, g_getuid());
return rv;
}