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

systemd static services are not passing service.enabled. #3241

Open
chris-rock opened this issue Feb 8, 2024 · 1 comment
Open

systemd static services are not passing service.enabled. #3241

chris-rock opened this issue Feb 8, 2024 · 1 comment

Comments

@chris-rock
Copy link
Member

Describe the bug

service("systemd-journald").enabled

it returns false because the service is static, not enabled. The code does not check for static https://github.com/mondoohq/cnquery/blob/main/providers/os/resources/services/systemd.go#L66C13-L66C36.

Kudos to @username-is-already-taken2 for reporting the issue.

To Reproduce

Run query above.

Expected behavior

Static services are detected as enabled.

@schnipschnap
Copy link

@chris-rock This issue can be closed because we work around it here right? https://github.com/mondoohq/cnspec-enterprise-policies/pull/732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants