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

Kernel: Unveil does not handle "../" #1260

Closed
shannonbooth opened this issue Feb 21, 2020 · 2 comments
Closed

Kernel: Unveil does not handle "../" #1260

shannonbooth opened this issue Feb 21, 2020 · 2 comments

Comments

@shannonbooth
Copy link
Member

Already a known issue, but making for visibility in case someone wants to work on it.

// FIXME: Figure out a nicer way to do this.
if (String(path).contains("/.."))
return KResult(-EINVAL);

Effectively the kernel will always reject any paths containing a "../" if the process has a veil, but the final resolved path may still be valid. In these cases the kernel should successfully resolve and handle the path.

@muscar
Copy link
Contributor

muscar commented Mar 11, 2020

I'll see if I can come up with something for this.

@muscar
Copy link
Contributor

muscar commented Mar 19, 2020

A work-around for this has been merged.

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

No branches or pull requests

2 participants