-
Notifications
You must be signed in to change notification settings - Fork 12
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
WIP: Python bindings #14
base: dev
Are you sure you want to change the base?
Conversation
7956a1a
to
cef0998
Compare
Adding the parameter set logic will require this to be based off #15. This allows us to do stuff like this: #!/usr/bin/env python3
import jail
config = jail.StoppedJail("/", parameters={"osrelease": "FnordBSD 42.023"})
running = config.start()
print(running.parameters) |
f96afc0
to
b313305
Compare
4fbd00c
to
b76a456
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all of these types look pretty much the same to me, or am i missing something?
@igalic what types? |
the |
b76a456
to
f5d559f
Compare
@igalic thanks for taking a look!
|
64e5f2c
to
e5563a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
j.stop() | ||
|
||
def test_start_stop_jail(benchmark): | ||
s = StoppedJail('/rescue') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a pretty cool "hack"
23b24f6
to
ffbfab8
Compare
This commit contains only code movement.
c02527a
to
43f1f8e
Compare
See #13
Includes (merge these first, then rebase):
Features
RACCT
statisticswait
,try_wait
read_stdout(count) -> bytearray
,read_stderr(count) -> bytearray
write_stdin(bytearray) -> bytes_written
readall_stdout_str() -> str
,readall_stderr_str() -> str
blocking until eofwrite_stdin_str(str)
flush_stdin()
Jls
)