Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

[Pal] file_open() creates files even if they aren't whitelisted #1166

Closed
omeg opened this issue Nov 26, 2019 · 1 comment
Closed

[Pal] file_open() creates files even if they aren't whitelisted #1166

omeg opened this issue Nov 26, 2019 · 1 comment
Labels

Comments

@omeg
Copy link
Contributor

omeg commented Nov 26, 2019

file_open() performs the open syscall before checking whether the file is allowed/trusted. So, if flags include O_CREAT or similar, the file gets created even if the function later returns access denied.

@mkow
Copy link
Member

mkow commented Nov 5, 2020

We removed sgx.allow_file_creation altogether in #1865, so I think this issue is not relevant anymore.

@mkow mkow closed this as completed Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants