From 24b16746c85387cbe186f38db5d8e85cb35f72a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emma=20Skovg=C3=A5rd?= <64806882+EmmasBox@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:47:35 +0100 Subject: [PATCH] Fixed bugs with RRSF bit flags --- sear/irrseq00/profile_post_processor.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sear/irrseq00/profile_post_processor.cpp b/sear/irrseq00/profile_post_processor.cpp index aac20d40..af93415b 100644 --- a/sear/irrseq00/profile_post_processor.cpp +++ b/sear/irrseq00/profile_post_processor.cpp @@ -359,61 +359,61 @@ void ProfilePostProcessor::postProcessRACFRRSF(SecurityRequest &request) { profile["profile"]["base"]["base:nodes"] = nodes; } - if (rrsf_extract_result->bit_flags == RRSF_FULLRRSFCOMM_ACTIVE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_FULLRRSFCOMM_ACTIVE) { profile["profile"]["base"]["base:full_rrsf_communication_active"] = true; } else { profile["profile"]["base"]["base:full_rrsf_communication_active"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_SET_AUTODIRECT_ACTIVE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_SET_AUTODIRECT_ACTIVE) { profile["profile"]["base"]["base:full_autodirect_active"] = true; } else { profile["profile"]["base"]["base:full_autodirect_active"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_SET_AUTODIRECT_APP_UPDATES) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_SET_AUTODIRECT_APP_UPDATES) { profile["profile"]["base"]["base:autodirect_application_updates"] = true; } else { profile["profile"]["base"]["base:autodirect_application_updates"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_SET_AUTO_PASSWORD_DIRECTION) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_SET_AUTO_PASSWORD_DIRECTION) { profile["profile"]["base"]["base:autodirect_passwords"] = true; } else { profile["profile"]["base"]["base:autodirect_passwords"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_SET_TRACE_APPC_ACTIVE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_SET_TRACE_APPC_ACTIVE) { profile["profile"]["base"]["base:appc_trace_active"] = true; } else { profile["profile"]["base"]["base:appc_trace_active"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_SET_TRACE_IMAGE_ACTIVE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_SET_TRACE_IMAGE_ACTIVE) { profile["profile"]["base"]["base:image_trace_active"] = true; } else { profile["profile"]["base"]["base:image_trace_active"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_SET_TRACE_SSL_ACTIVE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_SET_TRACE_SSL_ACTIVE) { profile["profile"]["base"]["base:ssl_trace_active"] = true; } else { profile["profile"]["base"]["base:ssl_trace_active"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_PRIVILEGED_ATTRIBUTE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_PRIVILEGED_ATTRIBUTE) { profile["profile"]["base"]["base:privileged_attribute_on"] = true; } else { profile["profile"]["base"]["base:privileged_attribute_on"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_TRUSTED_ATTRIBUTE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_TRUSTED_ATTRIBUTE) { profile["profile"]["base"]["base:trusted_attribute_on"] = true; } else { profile["profile"]["base"]["base:trusted_attribute_on"] = false; } - if (rrsf_extract_result->bit_flags == RRSF_NOT_ENOUGH_SPACE) { + if (ntohl(rrsf_extract_result->bit_flags) & RRSF_NOT_ENOUGH_SPACE) { request.setSEARReturnCode(4); // Raise Exception if RRSF extract Failed. throw SEARError("Not enough memory to extract RRSF settings");