Skip to content

Adjust parser ordering to error out on invalid names - #26

Closed
tianon wants to merge 1 commit into
ncopa:masterfrom
tianon:edge-cases
Closed

tianon wants to merge 1 commit into
ncopa:masterfrom
tianon:edge-cases

Conversation

@tianon

@tianon tianon commented Feb 26, 2019 •

Copy link
Copy Markdown
Contributor

See tianon/gosu@fd60171 and tianon/gosu@f87df69.

The basic problem is that an invalid name like bogus will quietly run as root instead of being denied entirely (which those test updates look for and this change is verified to fix).

I've run this updated implementation successfully against all of the test cases in https://github.com/tianon/gosu/blob/f87df69c868e19f7258b4facb7c2472d76d98dda/Dockerfile.test.

(See also tianon/gosu#57 (comment) / tianon/gosu#60.)

Closes #6

See tianon/gosu@fd60171 and tianon/gosu@f87df69.

The basic problem is that an invalid name like `bogus` will quietly run as `root` instead of being denied entirely (which those test updates look for and this change is verified to fix).

I've run this updated implementation successfully against all of the test cases in https://github.com/tianon/gosu/blob/f87df69c868e19f7258b4facb7c2472d76d98dda/Dockerfile.test.
@ken0x0a

ken0x0a commented Jun 7, 2019

Copy link
Copy Markdown

@ncopa Could you merge this, please?

@tianon

tianon commented Sep 18, 2019

Copy link
Copy Markdown
Contributor Author

Friendly ping @ncopa 🙏 ❤️

Anything about this you'd like me to change/update?

@ncopa

ncopa commented Sep 18, 2019

Copy link
Copy Markdown
Owner

sorry, i completely missed this.

@ncopa

ncopa commented Sep 18, 2019

Copy link
Copy Markdown
Owner

fixed with 212b751

@ncopa ncopa closed this Sep 18, 2019
@tianon
tianon deleted the edge-cases branch September 18, 2019 20:06
@tianon

tianon commented Feb 9, 2021

Copy link
Copy Markdown
Contributor Author

Any chance of a 0.3 with this change in it?

@ofek

ofek commented Dec 12, 2025

Copy link
Copy Markdown

This appears to have finally been released! https://github.com/ncopa/su-exec/releases/tag/v0.3

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.

Exit code should be non-zero for inexistent user

4 participants