Skip to content

Commit

Permalink
logging disabled for racheck calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrossmann committed Apr 29, 2024
1 parent 04b8faa commit 8350fc0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
12 changes: 1 addition & 11 deletions rac/rac.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,9 @@ int rac_check(const char *className, const char *profileName, const char *attrib
((uint24xptr_t *) (&parms.installation_params))->xbyte = sizeof(RAC_AUTH_PARMS);

parms.entity_profile = profile;
((uint24xptr_t *) (&parms.entity_profile))->xbyte = 0;

((uint24xptr_t *) (&parms.entity_profile))->xbyte = 2;
parms.class = classPtr;

/*
8 (8) BITSTRING 1 ACHKFLG2 SECOND FLAGS BYTE
1... .... ACHKTALT ATTR=ALTER
.111 .... * Reserved
.... 1... ACHKTCTL ATTR=CONTROL
.... .1.. ACHKTUPD ATTR=UPDATE
.... ..1. ACHKTRD ATTR=READ
.... ...1 * Reserved
*/
if (strcasecmp((const char *) attributeName, "READ") == 0) {
((uint24xptr_t *)(&parms.class))->xbyte = 2; // READ
} else if (strcasecmp((const char *) attributeName, "UPDATE") == 0) {
Expand Down
22 changes: 22 additions & 0 deletions rac/rac.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@ typedef struct {
} uint24xptr_t;

// see ACHKL mapping
/*
4 (4) BITSTRING 1 ACHKFLG1 FIRST FLAGS BYTE
1... .... ACHKRFI RACFIND PARAMETER GIVEN
.1.. .... ACHKRFIY RACFIND=YES
..1. .... ACHKENX ENTITYX IS SPECIFIED
...1 .... ACHKDSTV DSTYPE=V
.... 1... ACHK31IN 31-BIT ADDRESS LIST INDICATOR
.... .1.. ACHKLOGF LOG=NOFAIL
.... ..1. ACHKLOGN LOG=NONE
.... .11. ACHKLOGS LOG=NOSTAT (BOTH ON)
.... ...1 ACHKCSA ENTITY=(ADDR,CSA)
*/

/*
8 (8) BITSTRING 1 ACHKFLG2 SECOND FLAGS BYTE
1... .... ACHKTALT ATTR=ALTER
.111 .... * Reserved
.... 1... ACHKTCTL ATTR=CONTROL
.... .1.. ACHKTUPD ATTR=UPDATE
.... ..1. ACHKTRD ATTR=READ
.... ...1 * Reserved
*/
typedef struct {
void *installation_params;
void *entity_profile;
Expand Down

0 comments on commit 8350fc0

Please sign in to comment.