125 Commits

Author SHA1 Message Date
(null)
accb425018 allow selecting main ip by network name or static ip address 2023-12-28 03:15:15 -05:00
(null)
0137a2f49f fix duplicating arguments issue 2023-12-28 03:14:48 -05:00
Ka Ho Ng
a9945ec1c8 Merge pull request #9 from elliptic-kitty/symlink_fix
Symlink fix
2023-10-22 17:16:39 -04:00
elliptic-kitty
7f77fc0520 Merge branch 'michael-yuji:main' into symlink_fix 2023-10-13 13:40:56 -07:00
Ka Ho Ng
d79ad0504d Merge pull request #7 from elliptic-kitty/main
upgrade nix -> 0.27.1, address kqueue EINTR issue
2023-10-10 04:12:12 -04:00
elliptickitten
1c46f7dbef fix symlink for realpath 2023-10-03 01:08:46 -04:00
elliptickitten
958394a966 refactor for typos and clearer code 2023-10-02 22:28:12 -04:00
elliptickitten
0524516bda upgrade nix -> 0.27.1, address kqueue EINTR issue 2023-10-02 20:04:11 -04:00
michael-yuji
ee68c2ff01 fix typo 2023-09-25 00:38:20 -07:00
michael-yuji
020ddf3a8f Update README.md 2023-09-25 00:36:39 -07:00
(null)
dee1b6e073 Merge branch 'main' of github.com:michael-yuji/xc 2023-09-22 18:09:52 -04:00
michael-yuji
4e4676d0fe Merge pull request #2 from daniloegea/clap_fixes
Clap fixes for the "run" command
2023-09-23 01:58:28 -04:00
(null)
840bb7aabf Add a workaround when re-jailing ZFS datasets; remove accidental closefrom(); 2023-09-22 18:08:46 -04:00
(null)
fa707922c8 cargo fmt fixes 2023-09-21 14:36:00 -04:00
(null)
8261d7676b Add option to make using netgroup easier 2023-09-21 12:54:19 -04:00
Danilo Egea Gondolfo
f6e4879eff xc-bin: fix group short name in the "run" command
Clap is panicking with "Short option names must be unique".
2023-09-20 11:04:46 +01:00
Danilo Egea Gondolfo
f3529c418b xc-bin: move argument "publish" to its own struct
Clap is panicking with "Argument names must be unique" when the
subcommand "run" is called. The reason is that it shares the argument
"publish" with CreateArgs and it's being flattened.

Move it to its own struct and reuse it in "create" and "run".
Note that it seems to be happening in other places as well but
this commit only fixes the "run" command.
2023-09-20 11:04:29 +01:00
(null)
fab8007e15 remove unused module 2023-09-14 21:01:26 -04:00
(null)
192798d20d make usdt support optional 2023-09-14 21:00:36 -04:00
(null)
abe9f65dc2 Better error logging when exec failed 2023-09-14 12:01:27 -04:00
(null)
121fd2a728 fix symlink path search 2023-09-14 12:00:50 -04:00
(null)
89715e2137 fix relative path search 2023-09-14 10:31:16 -04:00
(null)
97b34b9724 write default inventory if existing inventory file does not exist 2023-09-14 10:28:28 -04:00
(null)
071b15be80 fix aarch64 build 2023-09-13 15:48:01 -04:00
(null)
caa81b4260 cargo fmt fix 2023-09-13 15:02:54 -04:00
(null)
3b364d7ad4 add create jail dtrace probe 2023-09-13 15:02:39 -04:00
(null)
fd1cce20d6 Merge develop branch, see detail commit
This commit containers the following changes:
- Fix fd forwarding in exec
- Fix exists_exec algorithm for path to executable contains symlinks parent
- Fix mount destination when using as alias
- Add Device directive for changing devfs rules
2023-09-13 11:41:40 -04:00
(null)
853a1ed33e oops, fix devfs rule not caching 2023-09-09 20:27:05 -04:00
(null)
d3b493b961 refactor 2023-09-08 04:42:06 -04:00
(null)
543b7133cf check for kern.elf64.fallback_brand sysctl 2023-09-07 23:00:39 -04:00
(null)
cc10ca249e fix osstring serialize/deserialize bugs 2023-09-07 04:35:46 -04:00
(null)
f830ac9bfe cargo fmt fixes 2023-09-06 02:40:11 -04:00
(null)
c87093593f check evidence during mount 2023-09-06 02:38:55 -04:00
(null)
f42318575e refactor cli arg parsing logic 2023-09-05 17:41:59 -04:00
(null)
b40562d28e add jailed dataset support 2023-09-05 08:06:58 -04:00
(null)
4955b8a821 refactor address allocation 2023-09-03 21:57:22 -04:00
(null)
c8b4d27ebd add volume support 2023-09-02 01:44:59 -04:00
(null)
ba7b8dd0da guard against name with . in jail name, make image reference serialize to string 2023-07-31 02:44:08 -04:00
(null)
957b0a54ee add some DTrace USDT probes 2023-07-31 02:07:35 -04:00
(null)
e2290d9016 fixed some race such that the client can attach on time 2023-07-30 18:12:29 -04:00
(null)
87612d8ec2 Run supervisor loop in child process; allow setting user/group on exec
- Executables are now able to run as non-root user by name or uid/gid
- Refactored the supervisor loop to make it run in child process, still
    keeping parent side of the run loop to poll in updates and eventually,
    event streams.
- The ultimate plan is to allow the supervisor loop "detach" from the main
    process, and allow a replacement process to adopt the loop. Such that
    the daemon can be restart/update without bringing all the running containers
    with it.
2023-07-30 02:31:44 -04:00
(null)
2f5e3dc64f Merge branch 'main' into uname 2023-07-28 20:21:17 -04:00
(null)
812f450ce4 refactor configuration format, now accepts yaml; network inventory goes to its own file 2023-07-27 23:24:16 -04:00
(null)
4b779520c3 fix clippy bits 2023-07-27 02:09:04 -04:00
(null)
9c0cd35bf9 mark 2023-07-26 23:24:33 -04:00
(null)
596c79a38a mark 2023-07-26 23:23:59 -04:00
(null)
bc1d9029b4 Add AppliedInstantiateRequest to add a effectless pre-instantiate check
Previously the checks and global resource allocation all happen in one place, this commit
move out the checks that does not require resource allocation. This allows us to warn the
user ahead of time about potentially risky container creation without restore allocated
resources.
2023-07-26 20:31:24 -04:00
(null)
d2778e416d Add devfs rule parser 2023-07-26 20:30:04 -04:00
(null)
280c0d261d allow setting a default value for environment variable in spec 2023-07-26 02:21:53 -04:00
(null)
81ff56435a zfs import bug fix 2023-07-26 01:21:10 -04:00