]>
git.proxmox.com Git - pve-lxc-syscalld.git/log
Wolfgang Bumiller [Fri, 21 Oct 2022 12:03:30 +0000 (14:03 +0200)]
replace custom Fd with std OwnedFd
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 21 Oct 2022 11:57:49 +0000 (13:57 +0200)]
prepare to drop Fd type for OwnedFd (std io_safety)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 21 Oct 2022 11:55:10 +0000 (13:55 +0200)]
cleanup fd macros
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 18 Jul 2022 10:15:47 +0000 (12:15 +0200)]
bump version to 1.2.2-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 18 Jul 2022 10:13:59 +0000 (12:13 +0200)]
drop EventedFd/PolledFd helpers
And use tokio's AsyncFd correctly.
And restore SOCK_NONBLOCK on the receiver.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 18 Jul 2022 10:13:40 +0000 (12:13 +0200)]
fix compiler compat issue (missing type annotation)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 18 Jul 2022 10:13:15 +0000 (12:13 +0200)]
add track_caller to spawn
so the tokio console shows the caller instead
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 18 Jul 2022 09:26:31 +0000 (11:26 +0200)]
Revert "Revert "seq_packet: set SOCK_NONBLOCK on accept""
This reverts commit
4275498bbc69ab8eb7849b71f6e4683f71ed29eb .
Wolfgang Bumiller [Mon, 18 Jul 2022 09:18:36 +0000 (11:18 +0200)]
bump version to 1.2.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 18 Jul 2022 09:17:30 +0000 (11:17 +0200)]
Revert "seq_packet: set SOCK_NONBLOCK on accept"
This reverts commit
ff22261dde605a4826023c2bc4bdd19733d0e563 .
This causes issues with lxc blocking on recvmsg.
Wolfgang Bumiller [Thu, 7 Jul 2022 13:20:31 +0000 (15:20 +0200)]
bump version to 1.2.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 7 Jul 2022 13:17:10 +0000 (15:17 +0200)]
seq_packet: set SOCK_NONBLOCK on accept
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jun 2022 08:35:20 +0000 (10:35 +0200)]
cleanup: explicitly use Arc::clone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jun 2022 08:09:53 +0000 (10:09 +0200)]
rt: set worker thread count
use at least 2 but at most 4 worker threads
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 1 Jun 2022 12:35:05 +0000 (14:35 +0200)]
update to nix 0.24
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 1 Jun 2022 11:19:05 +0000 (13:19 +0200)]
drop IoVec/Mut in favor of std IoSlice/Mut
These used to not be Send + Sync, but they are now.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 1 Jun 2022 07:52:29 +0000 (09:52 +0200)]
clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 1 Jun 2022 07:51:23 +0000 (09:51 +0200)]
bump edition to 2021
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 1 Jun 2022 07:45:51 +0000 (09:45 +0200)]
bump version to 1.1.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 27 May 2022 08:21:13 +0000 (10:21 +0200)]
make clippy happy
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 10 Jan 2022 15:17:10 +0000 (16:17 +0100)]
remove Todo.md
Just had 1 entry:
Fetching the notify fd isn't terribly useful right now, for
this optimization it's better to wait for the new 'handler'
approach once that's ready.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Mon, 10 Jan 2022 15:13:32 +0000 (16:13 +0100)]
remove rust-toolchain file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 7 Jan 2022 13:37:48 +0000 (14:37 +0100)]
rework AT_FDCWD handling
this one's negative, actually
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 7 Jan 2022 13:21:16 +0000 (14:21 +0100)]
bump version to 1.1.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 7 Jan 2022 13:12:41 +0000 (14:12 +0100)]
accept negative file descriptors
since for instance mknodat(-1, ...) may be used to
explicitly prevent relative paths we need to pass those
along instead of immediately failing with EINVAL
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 7 Jan 2022 11:19:16 +0000 (12:19 +0100)]
deny unsafe_op_in_unsafe_fn
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 7 Jan 2022 11:17:52 +0000 (12:17 +0100)]
clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 7 Jan 2022 10:51:48 +0000 (11:51 +0100)]
cargo fmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 11 Jun 2021 08:55:47 +0000 (10:55 +0200)]
clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 10 Jun 2021 11:08:38 +0000 (13:08 +0200)]
add 'make upload' target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 10 Jun 2021 10:05:19 +0000 (12:05 +0200)]
bump version to 1.0.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 10 Jun 2021 10:03:28 +0000 (12:03 +0200)]
support pure cgroupv2 environments
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 10 Jun 2021 10:01:54 +0000 (12:01 +0200)]
fix Pipe ReadBuf usage
this wasn't advancing the ReadBuf state
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Thomas Lamprecht [Wed, 12 May 2021 19:05:23 +0000 (21:05 +0200)]
bump version to 0.9.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 12 May 2021 19:03:24 +0000 (21:03 +0200)]
buildsys: add CARGO_BUILD_ARGS to test target to avoid full rebuild
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Wed, 17 Feb 2021 10:39:38 +0000 (11:39 +0100)]
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>
Fabian Grünbichler [Mon, 1 Feb 2021 10:24:03 +0000 (11:24 +0100)]
debcargo: fix maintainer directive
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Wed, 2 Dec 2020 12:26:51 +0000 (13:26 +0100)]
update nix dependency
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Wolfgang Bumiller [Thu, 20 Aug 2020 07:38:59 +0000 (09:38 +0200)]
add a Todo file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 17 Apr 2020 09:15:18 +0000 (11:15 +0200)]
replace failure with anyhow
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 30 Jan 2020 08:04:00 +0000 (09:04 +0100)]
bump version to 0.9.1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 30 Jan 2020 08:01:57 +0000 (09:01 +0100)]
fix '--' parameter handling and help error output
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jan 2020 13:40:37 +0000 (14:40 +0100)]
bump to 0.9.0, experimental release
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 29 Jan 2020 13:38:41 +0000 (14:38 +0100)]
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>
Wolfgang Bumiller [Wed, 29 Jan 2020 13:36:28 +0000 (14:36 +0100)]
don't create tokio-reactor-associated pipes before fork
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 11:04:31 +0000 (12:04 +0100)]
syscalls are processed sequentially
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 10:11:06 +0000 (11:11 +0100)]
formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 09:59:08 +0000 (10:59 +0100)]
finish service file
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 09:50:04 +0000 (10:50 +0100)]
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>
Wolfgang Bumiller [Wed, 22 Jan 2020 09:07:52 +0000 (10:07 +0100)]
install path fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 09:03:21 +0000 (10:03 +0100)]
add dinstall target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 09:01:56 +0000 (10:01 +0100)]
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>
Wolfgang Bumiller [Wed, 22 Jan 2020 08:59:59 +0000 (09:59 +0100)]
buildsys: use system toolchain for package builds
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 08:53:09 +0000 (09:53 +0100)]
doc
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 22 Jan 2020 08:51:47 +0000 (09:51 +0100)]
documentation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jan 2020 15:04:54 +0000 (16:04 +0100)]
test target fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jan 2020 15:04:18 +0000 (16:04 +0100)]
formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jan 2020 15:03:43 +0000 (16:03 +0100)]
debian/ fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jan 2020 15:02:34 +0000 (16:02 +0100)]
build fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jan 2020 14:51:42 +0000 (15:51 +0100)]
temp
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jan 2020 14:47:44 +0000 (15:47 +0100)]
prepare for debcargo packaging
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 21 Jan 2020 10:12:50 +0000 (11:12 +0100)]
switch back to tokio now that it's stable and packaged
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 10 Jan 2020 14:52:17 +0000 (15:52 +0100)]
also use pidfd_open for explicit pids
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 10 Jan 2020 14:51:22 +0000 (15:51 +0100)]
use pidfd_open
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 27 Dec 2019 10:47:02 +0000 (11:47 +0100)]
bumps
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 31 Oct 2019 10:48:12 +0000 (11:48 +0100)]
rename process::fd to process:pid_fd
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 31 Oct 2019 10:47:30 +0000 (11:47 +0100)]
move iovec to io submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 31 Oct 2019 10:46:22 +0000 (11:46 +0100)]
move epoll module to io submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 31 Oct 2019 08:18:08 +0000 (09:18 +0100)]
blocking fixup, and actually recvmsg on recvmsg
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 31 Oct 2019 08:05:25 +0000 (09:05 +0100)]
switch it all over to epoll
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 13:51:51 +0000 (14:51 +0100)]
seq_packet, iovec
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 13:25:21 +0000 (14:25 +0100)]
set PolledFd to nonblocking
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 13:24:24 +0000 (14:24 +0100)]
use nix for set_nonblocking impl
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 13:22:41 +0000 (14:22 +0100)]
pipe implementation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 13:14:51 +0000 (14:14 +0100)]
stuff
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 13:08:46 +0000 (14:08 +0100)]
use default reactor
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 13:07:28 +0000 (14:07 +0100)]
default reactor
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 12:42:29 +0000 (13:42 +0100)]
stuff
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 11:35:33 +0000 (12:35 +0100)]
edge triggering is vital for us
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 11:34:54 +0000 (12:34 +0100)]
remove unused stuff
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 11:34:27 +0000 (12:34 +0100)]
handle dropped fds
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 11:29:28 +0000 (12:29 +0100)]
r/w pollfd
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 11:28:18 +0000 (12:28 +0100)]
stuff
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 10:16:53 +0000 (11:16 +0100)]
c_call -> c_result for consistency
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 30 Oct 2019 10:16:10 +0000 (11:16 +0100)]
reactor stuff
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 29 Oct 2019 13:58:28 +0000 (14:58 +0100)]
todo
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 29 Oct 2019 13:57:56 +0000 (14:57 +0100)]
foo
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 29 Oct 2019 13:57:46 +0000 (14:57 +0100)]
working on stuff
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Tue, 29 Oct 2019 13:49:59 +0000 (14:49 +0100)]
working on epoll
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 25 Oct 2019 11:15:34 +0000 (13:15 +0200)]
spawn all the threads...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 25 Oct 2019 11:13:14 +0000 (13:13 +0200)]
clippy
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 25 Oct 2019 11:12:13 +0000 (13:12 +0200)]
clippy
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 25 Oct 2019 10:16:21 +0000 (12:16 +0200)]
custom executor
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 24 Oct 2019 16:56:32 +0000 (18:56 +0200)]
foo
Signed-off-by: Wolfgang Bumiller <w.bumiller@errno.eu>
Wolfgang Bumiller [Thu, 24 Oct 2019 13:39:24 +0000 (15:39 +0200)]
foo
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 24 Oct 2019 13:36:18 +0000 (15:36 +0200)]
more
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 24 Oct 2019 13:14:44 +0000 (15:14 +0200)]
working on the executor
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 24 Oct 2019 12:42:04 +0000 (14:42 +0200)]
started working on a replacement executor
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 24 Oct 2019 10:53:04 +0000 (12:53 +0200)]
drop unused errno crate
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 24 Oct 2019 10:51:48 +0000 (12:51 +0200)]
disable failure_derive
drops another 12 unused dependencies
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>