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

[rqd] Check if uid is valid before launching frame #1661

Merged

Conversation

DiegoTavares
Copy link
Collaborator

If the frame uid is outside of linux defined UID_MAX and UID_MIN fallback to the uid of the daemon user. Read https://www.man7.org/linux/man-pages/man5/login.defs.5.html for more information about uid limits. At this time, limits are hardcoded on rqconstants as the linux default values, which sounds reasonable as this default config limit is rarely modified.

If the frame uid is outside of linux defined UID_MAX and UID_MIN
fallback to the uid of the daemon user. Read https://www.man7.org/linux/man-pages/man5/login.defs.5.html
for more information about uid limits. At this time, limits are
hardcoded on rqconstants as the linux default values, which sounds
reasonable as this default config limit is rarely modified.
@DiegoTavares DiegoTavares marked this pull request as ready for review February 12, 2025 05:19
Copy link
Collaborator

@ramonfigueiredo ramonfigueiredo left a comment

Choose a reason for hiding this comment

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

Approved with minor change

rqd/rqd/rqconstants.py Outdated Show resolved Hide resolved
Co-authored-by: Ramon Figueiredo <[email protected]>
Signed-off-by: Diego Tavares <[email protected]>
@DiegoTavares DiegoTavares merged commit aba67ce into AcademySoftwareFoundation:master Feb 12, 2025
11 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