-
Notifications
You must be signed in to change notification settings - Fork 519
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
update SDK and build log4j2 hotpatch #1869
Conversation
Signed-off-by: Ben Cressey <[email protected]>
Fedora 35 no longer carries the patch to rpm's `find-debuginfo.sh` that explicitly decompresses DWARF, and consequently fails to extract any debuginfo. Work around this by disabling debuginfo compression at link time. Signed-off-by: Ben Cressey <[email protected]>
Fedora 35 runs the rpath check by default, so now we can undefine the macro to prevent it from running. Signed-off-by: Ben Cressey <[email protected]>
LGTM, pending testing. |
Looks good! |
a7ad030
to
9c01c27
Compare
9c01c27
to
42d345e
Compare
Summary: Tool for hot patching log4j2 vulnerabilities | ||
License: Apache-2.0 | ||
URL: https://github.com/corretto/%{project} | ||
Source0: https://github.com/corretto/%{project}/archive/%{version}/%{version}.tar.gz#/%{project}-%{version}.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: left over comment at the end? Or is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's intentional; it's a URL fragment that rpm
will parse as the file name for use in the %setup
macro.
packages/log4j2-hotpatch/0001-Log-to-stderr-instead-of-stdout.patch
Outdated
Show resolved
Hide resolved
} | ||
} else if (args.length == 1 && ("-h".equals(args[0]) || "-help".equals(args[0]) || "--help".equals(args[0]))) { | ||
- System.out.println("usage: Log4jHotPatch [<pid> [<pid> ..]]"); | ||
+ System.err.println("usage: Log4jHotPatch [<pid> [<pid> ..]]"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it common for -help
output to be on stderr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not. Not sure if there's a good reason for this - @stewartsmith ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(hit the wrong button, approving)
Signed-off-by: Ben Cressey <[email protected]>
42d345e
to
2f03f0f
Compare
Issue number:
N/A
Description of changes:
Update SDK to the new release, which includes maven, and use it to build the log4j2 hotpatch.
Testing done:
Built some variants on both architectures, for both architectures.
Additional tests:
aws-ecs-1
aws-k8s-1.21
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.