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

ramfs: If cwd is removed the curproc will be jailed #16

Closed
OlliV opened this issue Jan 28, 2015 · 3 comments
Closed

ramfs: If cwd is removed the curproc will be jailed #16

OlliV opened this issue Jan 28, 2015 · 3 comments
Labels

Comments

@OlliV
Copy link
Member

OlliV commented Jan 28, 2015

If the working directory of a process is removed the process is jailed to that directory
as the vnode doesn't get freed but dot and dotdot links are deleted. For some reason
chdir to / is not working either so rmdir . effectively creates a chroot-like jail.

@OlliV OlliV added the bug label Jan 28, 2015
@OlliV
Copy link
Member Author

OlliV commented Mar 11, 2015

This seems to happen mostly on ramfs. By now cd to / works ok after rmdir . but the directory is improperly destroyed.

@OlliV
Copy link
Member Author

OlliV commented Feb 16, 2016

cd /tmp
mkdir d
cd d

Now rmdir /tmp/d works but rmdir . only removes dot and dotdot links.

@OlliV
Copy link
Member Author

OlliV commented Feb 17, 2016

Fixed by 3395e70

@OlliV OlliV closed this as completed Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant