Skip to content

Don't set additional groups on darwin#31132

Merged
espadolini merged 2 commits intomasterfrom
espadolini/darwin-no-setgroups
Aug 29, 2023
Merged

Don't set additional groups on darwin#31132
espadolini merged 2 commits intomasterfrom
espadolini/darwin-no-setgroups

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

This PR makes it so that we don't set the list of additional groups when spawning processes as a user other than the one running the teleport binary on macOS; setting the list to more than 16 groups is not possible, and the call to setgroups is "highly discouraged" (as per the man page in macOS 13.5), and the system seems to pick up the correct list of additional groups just fine even without our effort.

Fixes #3167.

@github-actions github-actions Bot requested review from Tener and tigrato August 29, 2023 08:53
@espadolini espadolini added this pull request to the merge queue Aug 29, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 29, 2023
@espadolini espadolini added this pull request to the merge queue Aug 29, 2023
Merged via the queue into master with commit 39edd2c Aug 29, 2023
@espadolini espadolini deleted the espadolini/darwin-no-setgroups branch August 29, 2023 15:24
@public-teleport-github-review-bot
Copy link
Copy Markdown

@espadolini See the table below for backport results.

Branch Result
branch/v12 Create PR
branch/v13 Create PR
branch/v14 Failed

@zmb3
Copy link
Copy Markdown
Collaborator

zmb3 commented Aug 29, 2023

Did this make it into v14?

@espadolini
Copy link
Copy Markdown
Contributor Author

Yeah, the backport "failed" because branch/v14 doesn't exist yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teleport fails to spawn shell process as non-root user on Mac

5 participants