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

Dataset user v4 #5859

Closed
wants to merge 2 commits into from
Closed

Dataset user v4 #5859

wants to merge 2 commits into from

Conversation

regit
Copy link
Contributor

@regit regit commented Feb 14, 2021

Update of #5707 with a rebase.

Link to redmine ticket:

Describe changes:

  • Rebase on latest master

Introduce a function to factorize file opening for datasets.
When suricata is started with the --user or --group options, there is
a permission issue with the dataset files. They are created by root and
end up being owned by root. As a consequence the dataset files can not be
saved at exit because the file are open after switch to lower privilege
and thus the action is done as the lower privileged user.

This patch updates the code to chown the dataset files after opening so
it belongs to the lower privileged user.
@regit regit requested a review from a team as a code owner February 14, 2021 18:29
@jasonish jasonish self-assigned this Jun 11, 2021
@catenacyber catenacyber added the needs rebase Needs rebase to master label Nov 8, 2021
@regit regit mentioned this pull request Dec 6, 2021
3 tasks
@inashivb
Copy link
Member

inashivb commented Dec 8, 2021

Replaced w #6678

@inashivb inashivb closed this Dec 8, 2021
lukashino pushed a commit to lukashino/suricata that referenced this pull request Apr 4, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request Apr 5, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request Apr 18, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request Apr 18, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request Apr 24, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request May 4, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request May 4, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request May 10, 2023
lukashino pushed a commit to lukashino/suricata that referenced this pull request May 10, 2023
victorjulien pushed a commit to victorjulien/suricata that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs rebase Needs rebase to master
Development

Successfully merging this pull request may close these issues.

4 participants