-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
coreutils: Protect against env -a for security #10773
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
base: main
Are you sure you want to change the base?
Conversation
|
GNU testsuite comparison: |
01b6655 to
753f86c
Compare
|
GNU testsuite comparison: |
Merging this PR will not alter performance
Comparing Footnotes
|
59e307c to
ac75ff7
Compare
|
GNU testsuite comparison: |
|
I think it would make sense for this code to go into the validation.rs file instead of in the main.rs, then you don't have to worry about importing libc. It would be good to have an additional integration test that shows the env -a working |
This comment was marked as resolved.
This comment was marked as resolved.
|
coreutils/src/common/validation.rs Lines 69 to 77 in 194d980
Wait! Why are we using |
This comment was marked as resolved.
This comment was marked as resolved.
1337cbc to
40581ee
Compare
|
GNU testsuite comparison: |
Done |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
no idea how to remove argv[0] dispatch dep from |
|
GNU testsuite comparison: |
env -a false lsdoes not fail. Works under masked/proc.Closes #10135