Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sear/irrseq00/irrseq00.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const uint16_t t_repeat_field_header = 0x1000; // repeat field header
const uint32_t f_boolean_field = 0x80000000; // value of a boolean field
const uint32_t f_output_only = 0x40000000; // output-only field

// For dataset requests
const uint32_t GENERIC_FLAG = 0x10000000; // output-only field

#pragma pack(push, 1) // Don't byte align structure members.

/*************************************************************************/
Expand Down
12 changes: 12 additions & 0 deletions sear/irrseq00/profile_post_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// On z/OS these macros do nothing since "network order" and z/Architecture are
// both big endian. This is only necessary for unit testing off platform.
#include <arpa/inet.h>
#include <netinet/in.h>

#include "irrseq00.hpp"
#include "key_map.hpp"
Expand Down Expand Up @@ -105,6 +106,17 @@ void ProfilePostProcessor::postProcessGeneric(SecurityRequest &request) {
}
p_segment++;
}

if (admin_type == "dataset" || admin_type == "resource") {
// Generic checking for dataset & resource profiles isn't done through a field key
// like the rest of the data
if (ntohl(p_generic_result->flags) & GENERIC_FLAG) {
profile["profile"]["base"]["base:is_generic"] = true;
} else {
profile["profile"]["base"]["base:is_generic"] = false;
}
}

request.setIntermediateResultJSON(profile);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"base:erase_datasets_on_delete": false,
"base:global_auditing": "NONE",
"base:high_level_qualifier_is_group": false,
"base:is_generic":true,
"base:last_change_date": "03/19/24",
"base:last_reference_date": "03/19/24",
"base:level": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"base:erase_datasets_on_delete": false,
"base:global_auditing": "NONE",
"base:high_level_qualifier_is_group": false,
"base:is_generic":true,
"base:last_change_date": "03/10/25",
"base:last_reference_date": "03/10/25",
"base:level": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"base:control_access_count": 0,
"base:create_date": "12/20/23",
"base:global_auditing": "NONE",
"base:is_generic":false,
"base:last_change_date": "12/20/23",
"base:last_reference_date": "12/20/23",
"base:level": "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"base:control_access_count": 0,
"base:create_date": "03/10/25",
"base:global_auditing": "NONE",
"base:is_generic":false,
"base:last_change_date": "03/10/25",
"base:last_reference_date": "03/10/25",
"base:level": "0",
Expand Down