Commit Graph

135 Commits

Author SHA1 Message Date
Wolfgang Bumiller
8261331958 cargo fmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-01-07 11:51:48 +01:00
Wolfgang Bumiller
a03af34bb5 clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-11 10:55:47 +02:00
Wolfgang Bumiller
69eff2a1b2 add 'make upload' target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 13:08:38 +02:00
Wolfgang Bumiller
fb2ec93c4f bump version to 1.0.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 12:05:43 +02:00
Wolfgang Bumiller
fe73c2fb92 support pure cgroupv2 environments
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 12:03:28 +02:00
Wolfgang Bumiller
b5019f1a23 fix Pipe ReadBuf usage
this wasn't advancing the ReadBuf state

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-06-10 12:01:55 +02:00
Thomas Lamprecht
a8a175ea0b bump version to 0.9.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-12 21:05:23 +02:00
Thomas Lamprecht
4b8278231b buildsys: add CARGO_BUILD_ARGS to test target to avoid full rebuild
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-12 21:03:24 +02:00
Fabian Grünbichler
7a1ab2b21e update to tokio 1.0
and switch from PollEvented to AsyncFd, dropping the direct mio
dependency in turn.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-02-17 11:57:21 +01:00
Fabian Grünbichler
29219349a6 debcargo: fix maintainer directive
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-02-01 11:24:07 +01:00
Fabian Grünbichler
c7db073eb9 update nix dependency
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-12-02 13:26:51 +01:00
Wolfgang Bumiller
ae19b9487c add a Todo file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-08-20 09:38:59 +02:00
Wolfgang Bumiller
8150a43970 replace failure with anyhow
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-17 11:15:18 +02:00
Wolfgang Bumiller
cbd70f7799 bump version to 0.9.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 09:04:00 +01:00
Wolfgang Bumiller
750b5cb3db fix '--' parameter handling and help error output
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-30 09:01:57 +01:00
Wolfgang Bumiller
1e373b3395 bump to 0.9.0, experimental release
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-29 14:40:37 +01:00
Wolfgang Bumiller
b2564ece43 revert pidfd_open patches
They act like proc fds but aren't opened with O_DIRECTORY,
so we cannot use `openat()` yet. Maybe with a future kernel
extension...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-29 14:38:42 +01:00
Wolfgang Bumiller
edf4f4b9dd don't create tokio-reactor-associated pipes before fork
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-29 14:36:30 +01:00
Wolfgang Bumiller
7b37bdac8c syscalls are processed sequentially
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 12:04:31 +01:00
Wolfgang Bumiller
86ee36e899 formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 11:13:13 +01:00
Wolfgang Bumiller
7bb69bd3f6 finish service file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 11:05:50 +01:00
Wolfgang Bumiller
d54e9e5a31 parameter handling:
the getopts crate is wrong, it uses String for free
arguments. We want a Path argument, which is not utf8.

clap is too big for our use case

so we're doing this manually

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 10:56:31 +01:00
Wolfgang Bumiller
31d748b335 install path fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 10:07:52 +01:00
Wolfgang Bumiller
64a9f93ccf add dinstall target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 10:03:21 +01:00
Wolfgang Bumiller
3510be76a3 don't run fmt or clippy in check/test target
add a san (-ity) target instead

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 10:01:56 +01:00
Wolfgang Bumiller
6318298d33 buildsys: use system toolchain for package builds
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 09:59:59 +01:00
Wolfgang Bumiller
e78aca9d42 doc
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 09:53:09 +01:00
Wolfgang Bumiller
f42e079504 documentation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-22 09:51:47 +01:00
Wolfgang Bumiller
3b7411dadc test target fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 16:04:54 +01:00
Wolfgang Bumiller
d6ba646c65 formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 16:04:18 +01:00
Wolfgang Bumiller
19b78f1511 debian/ fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 16:03:43 +01:00
Wolfgang Bumiller
be1da45a10 build fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 16:02:34 +01:00
Wolfgang Bumiller
439edd6e64 temp
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 16:01:44 +01:00
Wolfgang Bumiller
634239cc56 prepare for debcargo packaging
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 15:47:44 +01:00
Wolfgang Bumiller
5bd0c5620f switch back to tokio now that it's stable and packaged
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-21 15:38:06 +01:00
Wolfgang Bumiller
401ab6a2e5 also use pidfd_open for explicit pids
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-10 15:53:21 +01:00
Wolfgang Bumiller
9ab7f72f71 use pidfd_open
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-01-10 15:51:22 +01:00
Wolfgang Bumiller
91acadadf2 bumps
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-12-27 11:47:02 +01:00
Wolfgang Bumiller
c7f2eab1ae rename process::fd to process:pid_fd
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-31 11:48:12 +01:00
Wolfgang Bumiller
43b5e59485 move iovec to io submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-31 11:47:30 +01:00
Wolfgang Bumiller
c84b90558f move epoll module to io submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-31 11:46:22 +01:00
Wolfgang Bumiller
1282264afc blocking fixup, and actually recvmsg on recvmsg
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-31 09:18:08 +01:00
Wolfgang Bumiller
8dd2698556 switch it all over to epoll
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-31 09:05:25 +01:00
Wolfgang Bumiller
cab6f1e64d seq_packet, iovec
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-30 14:51:51 +01:00
Wolfgang Bumiller
944fd4f5d2 set PolledFd to nonblocking
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-30 14:25:21 +01:00
Wolfgang Bumiller
47a812af5c use nix for set_nonblocking impl
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-30 14:24:24 +01:00
Wolfgang Bumiller
f4c536439a pipe implementation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-30 14:22:41 +01:00
Wolfgang Bumiller
86b8386760 stuff
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-30 14:14:51 +01:00
Wolfgang Bumiller
ca7f6ba03b use default reactor
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-30 14:08:46 +01:00
Wolfgang Bumiller
0e1eba91ce default reactor
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-30 14:07:28 +01:00