Skip to content

[WIP] telemetry: record oflags for FileAccess events#804

Draft
sharvilshah wants to merge 2 commits intomainfrom
sbs/snt-118-record-oflags-in-fileaccess-events-when-appropriate
Draft

[WIP] telemetry: record oflags for FileAccess events#804
sharvilshah wants to merge 2 commits intomainfrom
sbs/snt-118-record-oflags-in-fileaccess-events-when-appropriate

Conversation

@sharvilshah
Copy link
Copy Markdown
Contributor

Still testing and updating

@github-actions github-actions bot added comp/santad Issues or PRs related to the daemon lang/objc++ PRs modifying files in ObjC++ comp/common size/s Size: small labels Feb 23, 2026
@mlw mlw added this to the 2026.3 milestone Feb 24, 2026
@mlw mlw modified the milestones: 2026.3, 2026.4 Mar 25, 2026
Comment thread Source/common/santa.proto
optional string operation_id = 7;

// The access mode of the file in question
enum AccessMode {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

have you considered using a flagged enum for this?

eg
[flags]
enum
{
CanRead= 0b0001
CanWrite= 0b0010
}

This gives all 4 access modes in a similar manner to unix. and prevents people having to check for read and write separately.

Copy link
Copy Markdown

@grimley517 grimley517 left a comment

Choose a reason for hiding this comment

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

access mode - suggest using flags to identify capabilities rarther than the logical modes. the enum is MECE, but this makes what you do with the mode more complicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/common comp/santad Issues or PRs related to the daemon lang/objc++ PRs modifying files in ObjC++ size/s Size: small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants