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; }