-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
startup_items/linux: add systemd support #6562
startup_items/linux: add systemd support #6562
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the functionality. I'm looking forward to seeing what kind of stuff we can extract with dbus. Are there ways we can add testing to it?
This table isn't listed as being for linux. I think because https://github.com/osquery/osquery/blob/master/specs/macwin/startup_items.table is in a macwin
specific directory
I'll move the table file, thanks! What kind of testing did you have in mind? |
b6f957c
to
0da5913
Compare
I'm not sure. But the dbus stuff should have some sort of testing around it. I don't know what's feasible |
Adding the |
Nevermind, this looks equally challenging. Maybe we can assume |
Apparently we do not want to ever build using a pre-built static library from the system because it may end up being non-portable to other Linuxes. This is my understanding of what is needed now:
|
Ping, how is this coming along, do you need any help? |
It's mainly held up by the task of redoing libdbus' CMake, if anyone wants to help with that. Rachel has had to go back to school, so it fell down our list of priorities. |
996ea9a
to
80d98b1
Compare
The libdbus and libexpat libraries have now been imported correctly, but we still have to regenerate the configuration files from the reference distribution. I'll convert the PR back to draft until it's ready |
80d98b1
to
444cb39
Compare
The configurations are correct, I'm removing the draft state and marking it as ready for review |
444cb39
to
26d8853
Compare
5ead65a
to
d5a5b45
Compare
5ebaefb
to
e150273
Compare
This works for me in Ubuntu 18.04, but I don't have any results in the |
The 'args' column is empty, it's probably something used on non-linux platforms. The username column should appear in some instances, but it's normal if there are many rows without it |
Ok, so this column is just here for schema consistency with the
Ah you're right: it is present, just infrequently. |
99e02b4
to
3d10c4d
Compare
Co-authored-by: Alessandro Gario <alessandro.gario@gmail.com>
3d10c4d
to
2562d42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, this looks great!
This PR leverages the dbus API to add systemd support to the startup items table (#6502).