From 1722451715e90dd93a0b2f2afdece8a27d56045f Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Tue, 27 Jul 2021 17:09:43 +0900 Subject: [PATCH] clipboard: log file transfer for the purpose of audit Sponsored by: @CyberTrust and @haw --- sesman/chansrv/clipboard_file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sesman/chansrv/clipboard_file.c b/sesman/chansrv/clipboard_file.c index c644c909..bedfa9bd 100644 --- a/sesman/chansrv/clipboard_file.c +++ b/sesman/chansrv/clipboard_file.c @@ -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; }