Hi,a while back we were discussing a generalization of the mgr/worker interface and potential uses from extensions.
Over the past days I have been handling a DoS and it became apparent that being able to directly control Linux nftables from VCL (via an extension/vmod) would have been helpful.
For obvious reasons, the kernel interface to manipulate nftables requires elevated privileges, calling nft_ctx_new() from libnftables as an unprivileged user results in
socket(AF_NETLINK, SOCK_RAW, NETLINK_NETFILTER) = 3 sendto(3,..) recvmsg(3,..) sendto(3,..) recvmsg(3,..) write(2, "Operation not permitted..")I have not implemented a prototype, but my understanding is that this use case would actually need a CAP_NET_ADMIN capable process sending the messages via the AF_NETLINK socket.
So either my understanding is wrong and there is a better way, or we could, for this potential use case, make good use of the "syscall proxy" idea we had discussed in a different context.
Nils
OpenPGP_0x1DCD8F57A3868BD7.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ vinyl-dev mailing list [email protected] https://vinyl-cache.org/lists/mailman/listinfo/vinyl-dev
