clipboard: log file transfer for the purpose of audit

Sponsored by: @CyberTrust and @haw
This commit is contained in:
Koichiro IWAO
2021-07-27 17:09:43 +09:00
parent 7e95576849
commit 1722451715
+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;
}