Hello all!
I want to consult regarding this issue:
https://github.com/osquery/osquery/issues/7298
This is an issue that depends on the environment (whether or not SELinux or other security products are present and blocking)
I was thinking of resolving it without changing compatibility by applying a patch in librpm to dynamically check for getauxval in case we compile without that option (which we do for compatibility)
Is that an acceptable solution to keep the product working without the need to apply special exceptions for it?
Added code will look roughly like this:
rpmrc.c
964
#ifdef HAVE_GETAUXVAL
rpmat.platform = (char *) getauxval(AT_PLATFORM);
if (!rpmat.platform)
rpmat.platform = "";
rpmat.hwcap = getauxval(AT_HWCAP);
#else
// Try dynamically
if (!g_getauxval_initialized)
{
g_getauxval_func = (getauxval_t)dlsym(NULL, "getauxval");
}
if (g_getauxval_func)
{
rpmat.platform = (char *) getauxval_func(AT_PLATFORM);
if (!rpmat.platform)
rpmat.platform = "";
rpmat.hwcap = getauxval_func(AT_HWCAP);
}
else
{
// Continue original rpmlib code
}