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

VNET Jails #10

Open
4 of 10 tasks
fabianfreyer opened this issue Jun 26, 2018 · 3 comments
Open
4 of 10 tasks

VNET Jails #10

fabianfreyer opened this issue Jun 26, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed wishlist Wishlist
Milestone

Comments

@fabianfreyer
Copy link
Contributor

fabianfreyer commented Jun 26, 2018

Roadmap:

@fabianfreyer fabianfreyer added enhancement New feature or request help wanted Extra attention is needed labels Jun 26, 2018
@fabianfreyer fabianfreyer added the wishlist Wishlist label Jul 4, 2018
@fabianfreyer
Copy link
Contributor Author

The CI for #33 failed on 12.0-RELEASE fails with the following error message:

failures:

---- src/running.rs - running::RunningJail::restart (line 356) stdout ----
thread 'src/running.rs - running::RunningJail::restart (line 356)' panicked at 'test executable failed:

thread 'main' panicked at 'failed to restart jail: JailSetError("vnet jails cannot have IP address restrictions")', libcore/result.rs:1009:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

', librustdoc/test.rs:367:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    src/running.rs - running::RunningJail::restart (line 356)

test result: FAILED. 44 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--doc'

Exit status: 101

Probably this is related to VIMAGE being enabled by default on 12.0-RELEASE.

@fabianfreyer fabianfreyer self-assigned this Dec 23, 2018
@fabianfreyer fabianfreyer modified the milestones: 0.0.6, 0.0.7 Dec 23, 2018
@fabianfreyer fabianfreyer modified the milestones: 0.0.7, 0.0.8 May 26, 2019
@akhramov
Copy link
Contributor

The error has been addressed in #79.

Regarding

Handle adding epairs / vnets to the jail

Not only you need a programmatic way to create / manipulate interfaces, but also need to replicate some functionality from route(8).

The latter can be tricky, because the code in route(8) makes heavy use of functional C macros.

That said, I recently tackled both problems. Please see akhramov/knast@4b46b13 for reference.

@fabianfreyer
Copy link
Contributor Author

@akhramov thanks, this looks great! I'll go take a look at #79!

@fabianfreyer fabianfreyer modified the milestones: 0.2.0, Future Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed wishlist Wishlist
Projects
None yet
Development

No branches or pull requests

2 participants