Skip to content

Commit

Permalink
Merge pull request #1954 from metalefty/clipboard-file-log
Browse files Browse the repository at this point in the history
clipboard: log file transfer for the purpose of audit (#1954)
  • Loading branch information
matt335672 authored Aug 11, 2021
2 parents 507305b + 1722451 commit b481351
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sesman/chansrv/clipboard_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b481351

Please sign in to comment.