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

On OpenBSD restrict access to system calls with pledge() #83

Merged
merged 2 commits into from
Feb 6, 2023
Merged

Conversation

job
Copy link
Member

@job job commented Jan 30, 2023

@job
Copy link
Member Author

job commented Jan 30, 2023

I didn't yet figure out how to do unveil() in a satisfactory way, but figured we could start with at least pledge()

@@ -587,6 +588,12 @@ func (m *metricsEvent) UpdateMetrics(numIPv4 int, numIPv6 int, numIPv4filtered i
}

func main() {
err := ossec.PledgePromises("dns inet rpath stdio tty")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Likely want to make this more generic for the future, but for now this is fine

@benjojo benjojo merged commit f8b0c87 into master Feb 6, 2023
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

Successfully merging this pull request may close these issues.

2 participants