Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

zwass
Copy link
Member

@zwass zwass commented Aug 7, 2025

Entitlements are returned as JSON, or an empty string if no entitlements are set.

Also added some integration testing to the table.

fleetdm/fleet#25679

Entitlements are returned as JSON, or an empty string if no entitlements are set.

Also added some integration testing to the table.

fleetdm/fleet#25679
@zwass zwass changed the title Add entitlements column to macOS signature table Add entitlements column to macOS signature table Aug 7, 2025
Copy link
Contributor

@lucasmrod lucasmrod left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +222 to +223
[[NSString alloc] initWithData:jsonData
encoding:NSUTF8StringEncoding];
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it safe to call this with jsonData == nil?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question! I think we are okay as jsonData should be non-nil if error is nil.

JSON data for obj, or nil if an internal error occurs.

Also seems like nil is returned rather than throwing an exception on invalid data for the initialization.

Returns nil if the initialization fails for some reason (for example if data does not represent valid data for encoding).

@zwass zwass merged commit 6e0d1db into osquery:master Aug 12, 2025
22 checks passed
@zwass zwass deleted the signature-entitlements branch August 12, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.