Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add connected_displays table on macOS #7946

Merged
merged 9 commits into from
May 3, 2023

Conversation

cacab
Copy link
Contributor

@cacab cacab commented Feb 24, 2023

What?

This table adds a connected_displays virtual table which produces multiple rows (depending on the number of displays) giving useful information about a Macbook's internal battery.

Here is what the table looks like for my 15" Macbook Pro 2021:

output

Why?

This is meant to resolve #7486. This table provides helpful insights into display age, serial numbers, and resolution.

Add connected_displays table

Add connected_displays table

remove nslogs, clean up

Add connected_displays table

wip
@cacab cacab requested review from a team as code owners February 24, 2023 22:40
@cacab cacab force-pushed the add_connected_displays_table branch from b6798f9 to f18be28 Compare February 24, 2023 22:45
@cacab cacab force-pushed the add_connected_displays_table branch from 011df89 to 76a2b64 Compare February 24, 2023 23:57
@cacab cacab force-pushed the add_connected_displays_table branch from 4b04d51 to f67f22f Compare February 25, 2023 00:24
osquery/tables/system/darwin/connected_displays.mm Outdated Show resolved Hide resolved
specs/darwin/connected_displays.table Outdated Show resolved Hide resolved
specs/darwin/connected_displays.table Outdated Show resolved Hide resolved
@directionless
Copy link
Member

@sharvilshah nudge nudge

Copy link
Member

@sharvilshah sharvilshah left a comment

Choose a reason for hiding this comment

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

Looks great @cacab thanks! Just a couple of minor questions

osquery/tables/system/darwin/connected_displays.mm Outdated Show resolved Hide resolved
osquery/tables/system/darwin/connected_displays.mm Outdated Show resolved Hide resolved
@cacab cacab requested a review from sharvilshah April 29, 2023 01:40
@cacab
Copy link
Contributor Author

cacab commented May 2, 2023

@sharvilshah this is ready for another look when you get a moment

@directionless directionless changed the title Add connected_displays table for macOS Add connected_displays table on macOS May 3, 2023
@directionless directionless merged commit 65cc6c3 into osquery:master May 3, 2023
15 checks passed
@cacab cacab deleted the add_connected_displays_table branch May 5, 2023 17:42
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.

Expand video_info table for macOS
3 participants