Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide binary for ARM / Raspberry #149

Closed
doctore74 opened this issue Dec 18, 2021 · 10 comments
Closed

provide binary for ARM / Raspberry #149

doctore74 opened this issue Dec 18, 2021 · 10 comments
Assignees
Labels
enhancement New feature or request patch released

Comments

@doctore74
Copy link

It would be great if you could provide the scan binaries for ARM/Raspberry/MacOS as well.

@jgstew
Copy link
Contributor

jgstew commented Dec 19, 2021

You can run the JAR without the binary as long as you have a JRE/JDK already installed.

Building the binaries is kind of a pain from my research without actually building it on the platform you wish to target.

With something like Python, I can actually build binaries for other platforms on a single platform, so that is much easier to automate.

I am looking into automatically building binaries on all platforms that github provides action runners for here: #133

I haven't had as much time to work on it as I would like yesterday and today, but as far as I know, this would only help add MacOS binaries.

I'm not sure if there is a service offering out there that is inexpensive that could be used to help automate the building of Java binaries for many target platforms, but if so, that would be interesting to me.

Also, I would happily buy @xeraph a Raspberry Pi to contribute to this effort :-)

@xeraph
Copy link
Contributor

xeraph commented Dec 19, 2021

@doctore74 Just released Mac OS binary. Our team is setting up ARM server on cloud to build image.
Try https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.3.1/logpresso-log4j2-scan-2.3.1-darwin.tar.gz

@xeraph xeraph self-assigned this Dec 19, 2021
@xeraph xeraph added the enhancement New feature or request label Dec 19, 2021
@xeraph
Copy link
Contributor

xeraph commented Dec 19, 2021

@doctore74 Just released linux aarch64 binary.
https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.3.1/logpresso-log4j2-scan-2.3.1-linux-aarch64.tar.gz

@jgstew
Copy link
Contributor

jgstew commented Dec 19, 2021

Well that was fast. I was just googling emulating a raspberry pi with Qemu:

@jgstew
Copy link
Contributor

jgstew commented Dec 19, 2021

@xeraph there is macos intel CPU and there is macos apple arm CPU. I assume the binary is for Intel CPUs? Might make sense to note that in the name of the file, though I guess same as Linux where the default one is Intel, then the one named differently is Arm.

@xeraph
Copy link
Contributor

xeraph commented Dec 19, 2021

@jgstew Our team tested both MacOS 12.0.1 (arm) and MacOS 12.0.1 (x64). Single Mach-O image works for arm and x64.

@doctore74
Copy link
Author

doctore74 commented Dec 19, 2021

This is awesome guys! What about using logpresso in a Monitoring Tool on a regular basis. Btw. we did this. Is someone interested?

@xeraph
Copy link
Contributor

xeraph commented Dec 19, 2021

@doctore74 Great idea. Would you introduce what you did in #96 ?

@doctore74
Copy link
Author

@jgstew Our team tested both MacOS 12.0.1 (arm) and MacOS 12.0.1 (x64). Single Mach-O image works for arm and x64.

I successfully tested the Darwin binary on a M1 Mac.

@xeraph xeraph closed this as completed Dec 19, 2021
@doctore74
Copy link
Author

@doctore74 Just released linux aarch64 binary. https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v2.3.1/logpresso-log4j2-scan-2.3.1-linux-aarch64.tar.gz

Nice, but that was not Raspberry, correct? Raspberry uses ARM. @jgstew Does the MacOS 12.0.1 (arm) work here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request patch released
Projects
None yet
Development

No branches or pull requests

3 participants