Skip to content

Conversation

@DiegoTavares
Copy link
Collaborator

@DiegoTavares DiegoTavares commented Aug 28, 2024

Changes implemented by #1416 impacted the locking mechanism for handling permissions on rqd, causing multiple threads to compete for permission settings and access to passwords.

Besides fixing the bug, this PR also introduces a fix for a potential security issue that would allow frames to run as root if the frame user didn't exist and the process to create this user fails.

Changes implemented by AcademySoftwareFoundation#1416 impacted the locking mechanism for handling permissions on rqd, causing multiple threads to compete for permission settings and access to passwd.

Besides fixing the bug, this PR also introduces a fix for a potential security issue that would allow frames to run as root if the frame user didn't exist and the process to create this user fails.
@DiegoTavares DiegoTavares changed the title Fix permission issues when becoming an user [rqd] Fix permission issues when becoming an user Aug 28, 2024
@DiegoTavares DiegoTavares marked this pull request as ready for review August 28, 2024 18:10
@ramonfigueiredo ramonfigueiredo changed the title [rqd] Fix permission issues when becoming an user [rqd] Fix permission issues when becoming a user Sep 6, 2024
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.

@DiegoTavares

Approved

cmd.append(username)
log.info("Frame's username not found on host. Adding user with: %s", cmd)
subprocess.check_call(cmd)
# Multiple processes can be trying to access passwd, permissionHigh and
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix comment:

passwd?

@DiegoTavares DiegoTavares merged commit 03960ea into AcademySoftwareFoundation:master Sep 6, 2024
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