We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9270598 commit 3760ccbCopy full SHA for 3760ccb
1 file changed
src/modules/complianceengine/src/lib/CMakeLists.txt
@@ -51,7 +51,9 @@ add_custom_command(
51
52
add_custom_command(
53
OUTPUT ${COPYFAIL_BPF_OBJECT_INC}
54
- COMMAND /bin/sh -c "${XXD_EXECUTABLE} -i -n gCopyFailMitigationBpfObject ${COPYFAIL_BPF_OBJECT} > ${COPYFAIL_BPF_OBJECT_INC}"
+ # RHEL's older xxd does not support `-n`, so generate the include with the
55
+ # default path-derived symbols and rewrite only the declarations to stable names.
56
+ COMMAND /bin/sh -c "\"${XXD_EXECUTABLE}\" -i \"${COPYFAIL_BPF_OBJECT}\" | sed -e 's/^unsigned char .*\\[\\] =/unsigned char gCopyFailMitigationBpfObject[] =/' -e 's/^unsigned int .*_len =/unsigned int gCopyFailMitigationBpfObject_len =/' > \"${COPYFAIL_BPF_OBJECT_INC}\""
57
DEPENDS ${COPYFAIL_BPF_OBJECT}
58
VERBATIM
59
)
0 commit comments