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

tuned-ppd: Disallow releasing profile holds of other processes #707

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

zacikpa
Copy link
Contributor

@zacikpa zacikpa commented Nov 6, 2024

Add a check which raises an error if the caller of ReleaseProfile
is not identical to the caller of HoldProfile.

Do not number cookies from 0, use pseudo-random integers.

Do not allow null cookies, which may cause issues in clients.
E.g., in gnome-settings-daemon, a null cookie means that it
currently has no active hold.

@zacikpa zacikpa changed the title tuned-ppd: Count profile hold cookies from 1 tuned-ppd: Disallow releasing profile holds of other processes Nov 11, 2024
@zacikpa zacikpa force-pushed the ppd-fix-cookies branch 3 times, most recently from 150411a to 0380ba2 Compare November 11, 2024 13:45
Add a check which raises an error if the caller of ReleaseProfile
is not identical to the caller of HoldProfile.

Do not number cookies from 0, use pseudo-random integers.

Do not allow null cookies, which may cause issues in clients.
E.g., in gnome-settings-daemon, a null cookie means that it
currently has no active hold.
@yarda
Copy link
Contributor

yarda commented Jan 15, 2025

Thanks LGTM, the CI failure seems unrelated.

@yarda yarda merged commit 44ef030 into redhat-performance:master Jan 15, 2025
13 of 14 checks passed
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