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

fix: Add delete permission to thesecure_open #92

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

Honglichenn
Copy link
Contributor

@Honglichenn Honglichenn commented Mar 22, 2024

What was the problem/requirement? (What/Why)

The Delete permission is missing in the secure_open in the Windows. It will cause that the connection file is not able to be deleted .

What was the solution? (How)

Add the permission to the secure_open to allow the cleanup to clean up the files.

What is the impact of this change?

connection file should be deleted successfully.

How was this change tested?

Due to an unexpected behavior within the system, I encountered limitations in directly testing this change. Specifically, files located under C:\Users\user_name can be deleted without requiring delete permissions. Therefore, One of our test can delete the file without the delete permissions. Want to mention that permission inheritance has been explicitly disabled for these files, yet deletion is still possible. I need to investigate this issue outside of this PR.

I manually check the delete permission of the file create by the secure_open to confirm that the file owner have the permission to read, write and delete the file. So the permissions are updated.

Was this change documented?

N/A

Is this a breaking change?

N/A


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Honglichenn Honglichenn force-pushed the honglich/delete_permission branch from c68e930 to 9b1ef0f Compare March 22, 2024 20:10
@Honglichenn Honglichenn changed the title Fix: Add delete permission to thesecure_open fix: Add delete permission to thesecure_open Mar 22, 2024
@Honglichenn Honglichenn requested a review from jericht March 22, 2024 21:56
@Honglichenn Honglichenn force-pushed the honglich/delete_permission branch from 37a6b0b to a8c421e Compare March 22, 2024 23:06
@Honglichenn Honglichenn requested a review from ddneilson March 22, 2024 23:08
@Honglichenn Honglichenn marked this pull request as ready for review March 22, 2024 23:12
@Honglichenn Honglichenn requested a review from a team as a code owner March 22, 2024 23:12
Signed-off-by: Hongli Chen <honglich@amazon.com>
@Honglichenn Honglichenn force-pushed the honglich/delete_permission branch from d65483a to c1cc61b Compare March 25, 2024 16:15
@Honglichenn Honglichenn merged commit 6d066ad into mainline Mar 25, 2024
12 checks passed
@Honglichenn Honglichenn deleted the honglich/delete_permission branch March 25, 2024 16:21
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.

3 participants