Updating or stopping tamper-proof audit policies
A tamper-proof audit policy cannot be modified or stopped unless the user is authorized to access the Db2 audit policy profile by a z/OS® security product that is external to Db2, such as RACF®.
Before you begin
Your system security administrator must activate and RACLIST the RACF DSNR class if they have not already done so.
SETR CLASSACT(DSNR) GENERIC(DSNR)
SETR RACLIST(DSNR)
About this task
Procedure
To update a tamper-proof audit policy:
Examples
- Example: Updating a tamper-proof audit policy that is already started
- Update the tamper-proof audit policy TAMPERPRFPOLICY01, which is already started, as a user with user ID
SARA.- Ask your system security administrator to complete the following steps:
- Activate and RACLIST the DSNR class.
SETR CLASSACT(DSNR) GENERIC(DSNR) SETR RACLIST(DSNR) - Create a RACF profile, DSNAUDIT.TAMPERPRFPOLICY01, for the audit policy that is to be modified. Permit your user ID access to the profile.
RDEFINE DSNR DSNAUDIT.TAMPERPRFPOLICY01 UACC(NONE) OWNER(DB2OWNER) PE DSNAUDIT.TAMPERPRFPOLICY01 ID(SARA) ACCESS(READ) CLASS(DSNR) SETR RACLIST(DSNR) REFRESH
- Activate and RACLIST the DSNR class.
- Update the tamper-proof audit policy record in the SYSIBM.SYSAUDITPOLICIES table.
UPDATE SYSIBM.SYSAUDITPOLICIES SET SYSADMIN=’IR’ WHERE AUDITPOLICYNAME=‘TAMPERPRFPOLICY01’; - Issue the STOP TRACE command to stop the tamper-proof audit policy record.
STO TRACE(AUDIT) AUDTPLCY(TAMPERPRFPOLICY01) - Issue the START TRACE command to restart the modified tamper-proof audit policy record.
STA TRACE(AUDIT) AUDTPLCY(TAMPERPRFPOLICY01) - Ask your system security administrator to remove access to the audit policy profile in RACF for your user ID.
PE DSNAUDIT.TAMPERPRFPOLICY01 ID(SARA) DELETE CLASS(DSNR) SETR RACLIST(DSNR) REFRESH
- Ask your system security administrator to complete the following steps:
- Example: Updating a tamper-proof audit policy that is not started
- Update the tamper-proof audit policy TAMPERPRFPOLICY02, which is not started, as a user that is associated with RACF group DBSECA.
- Ask your system security administrator to complete the following steps:
- Activate and RACLIST the DSNR class.
SETR CLASSACT(DSNR) GENERIC(DSNR) SETR RACLIST(DSNR) - Create a RACF profile, DSNAUDIT.TAMPERPRFPOLICY02, for the audit policy to be modified. Permit the RACF group DBSECA access to the profile.
RDEFINE DSNR DSNAUDIT.TAMPERPRFPOLICY02 UACC(NONE) OWNER(DB2OWNER) PE DSNAUDIT.TAMPERPRFPOLICY02 ID(DBSECA) ACCESS(READ) CLASS(DSNR) SETR RACLIST(DSNR) REFRESH
- Activate and RACLIST the DSNR class.
- Update the tamper-proof audit policy record in the SYSIBM.SYSAUDITPOLICIES table.
UPDATE SYSIBM.SYSAUDITPOLICIES SET DBADMIN=’BGT’ WHERE AUDITPOLICYNAME = ‘TAMPERPRFPOLICY02’; - Ask your system security administrator to remove access to the audit policy profile in RACF for DBSECA.
PE DSNAUDIT.TAMPERPRFPOLICY02 ID(DBSECA) DELETE CLASS(DSNR) SETR RACLIST(DSNR) REFRESH
- Ask your system security administrator to complete the following steps: