Skip to content

dird: make UA tree command auditing possible#493

Merged
frb121 merged 5 commits intomasterfrom
dev/fbergkemper/master/s3975
Apr 28, 2020
Merged

dird: make UA tree command auditing possible#493
frb121 merged 5 commits intomasterfrom
dev/fbergkemper/master/s3975

Conversation

@frb121
Copy link
Contributor

@frb121 frb121 commented Apr 21, 2020

  1. Introduce a new boolean named audit_event in the struct cmdstruct
    of the TreeContext to mark commands which require auditing.

  2. Introduce a condition in the UserSelectFilesFromTree function to
    call LogAuditEventCmdline if the given command wants an audit event.

@frb121 frb121 requested a review from franku April 21, 2020 14:01
@frb121 frb121 force-pushed the dev/fbergkemper/master/s3975 branch 3 times, most recently from b7a0b4b to 6f036bc Compare April 23, 2020 12:04
@frb121 frb121 marked this pull request as ready for review April 23, 2020 12:06
Copy link
Contributor

@franku franku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. However, I suggested some changes. Please see my comments.

Please note, any commit should compile successful on its own if it can be easily achieved.
This makes git bisect much more straightforward if someone wants to find a siltent bug someday.

@frb121 frb121 force-pushed the dev/fbergkemper/master/s3975 branch 2 times, most recently from cadc43e to 00a7702 Compare April 24, 2020 13:41
@frb121 frb121 requested a review from franku April 24, 2020 13:44
frb121 added 5 commits April 24, 2020 16:06
1. Introduce a new boolean named audit_event in the struct cmdstruct
of the TreeContext to mark commands which require auditing.

2. Introduce a condition in the UserSelectFilesFromTree function to
call LogAuditEventCmdline if the given command wants an audit event.
To be able to send "custom" UA auditing messages, the method
LogAuditEventInfoMsg(const char* fmt, ...) is introduced to
the UaContext class.
@frb121 frb121 force-pushed the dev/fbergkemper/master/s3975 branch from 00a7702 to e9cb830 Compare April 24, 2020 14:08
@frb121 frb121 merged commit 544b82b into master Apr 28, 2020
@frb121 frb121 deleted the dev/fbergkemper/master/s3975 branch April 28, 2020 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants