Skip to content

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

Closed
sharvilshah wants to merge 2 commits into
mainfrom
sbs/snt-118-record-oflags-in-fileaccess-events-when-appropriate
Closed

[WIP] telemetry: record oflags for FileAccess events#804
sharvilshah wants to merge 2 commits into
mainfrom
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.

@grimley517 grimley517 left a comment

Copy link
Copy Markdown

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.

@pmarkowsky pmarkowsky modified the milestones: 2026.4, 2026.5 May 13, 2026
@pmarkowsky

Copy link
Copy Markdown
Member

Lets close this for now and pick it up after the next release.

@pmarkowsky pmarkowsky closed this May 27, 2026
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.

4 participants