Command reference / sec
CHGSECAUD
Change Security Auditing
Changes the system values that control security auditing. When needed, the command creates QAUDJRN in QSYS and an initial journal receiver.
Allowed environments: *ALL.
Positional parameters: 0.
Parameters
QAUDCTL
QAUDCTL system value
The setting for the system value QAUDCTL. Note:
Allowed values:
*SAME, *ALL, *NONE, *OBJAUD, *AUDLVL, *NOQTEMP
*SAME- Keep the current QAUDCTL system value.
*ALL- The QAUDCTL system value is given the value of *AUDLVL, *OBJAUD, and *NOQTEMP.
*NOTAVL- The user performing the command is not allowed to display the current auditing value. You cannot change the system value to not available (*NOTAVL).
*NONE- No security auditing is done on the system. This is the shipped value.
*OBJAUD- Actions against objects that have an object audit value other than *NONE will be audited. An object's audit value is set through the Change Audit (CHGAUD) command or the Change Object Audit (CHGOBJAUD) command.
*AUDLVL- The actions specified in the QAUDLVL and QAUDLVL2 system values will be logged to the security journal.
*NOQTEMP- No auditing of most objects in QTEMP is done. You must specify *NOQTEMP with either *OBJAUD or *AUDLVL. You can not specify *NOQTEMP by itself.
QAUDLVL
Auditing values
Choose the events that IBM i records as security audit entries. Up to 16 selections fit in QAUDLVL. With more selections, QAUDLVL holds 15 selections and *AUDLVL2, and QAUDLVL2 holds the remainder.
Allowed values:
*SAME, *ALL, *DFTSET, *NONE, *NONE Other values (up to 115 repetitions): *ATNEVT, *AUTFAIL, *CREATE, *DELETE, *JOBBAS, *JOBCHGUSR, *JOBDTA, *NETBAS, *NETCLU, *NETCMN, *NETFAIL, *NETSCK, *NETSECURE, *NETTELSVR, *NETUDP, *OBJMGT, *OFCSRV, *OPTICAL, *PGMADP, *PGMFAIL, *PRTDTA, *PTFOBJ, *PTFOPR, *SAVRST, *SECCFG, *SECDIRSRV, *SECIPC, *SECNAS, *SECRUN, *SECSCKD, *SECURITY, *SECVFY, *SECVLDL, *SERVICE, *SPLFDTA, *SYSMGT
*SAME- The system values do not change.
*ALL- All values are selected (except the values that are automatically included. Example - *SECURITY includes *SECCFG so *SECCFG is not added to the system value).
*DFTSET- The system value is given the value of *AUTFAIL, *CREATE, *DELETE, *SECURITY, and *SAVRST.
*NONE- No security action auditing will occur on the system. This is the shipped value.
*ATNEVT- Attention events are audited. Attention events are conditions that require further evaluation to determine the condition's security significance.
*AUTFAIL- Authorization failures are audited. The following are some examples: All access failures (sign-on, authorization, job submission) Incorrect password or user ID entered from a device.
*CREATE- All object creations are audited. Objects created into library QTEMP are not audited. The following are some examples: Newly-created objects Objects created to replace an existing object.
*DELETE- All deletions of external objects on the system are audited. Objects deleted from library QTEMP are not audited.
*JOBBAS- Job base functions are audited. The following are some examples: Job start and stop data Hold, release, stop, continue, change, disconnect, end, end abnormal, PSR-attached to prestart job entries.
*JOBCHGUSR- Changes to a thread's active user profile or its group profiles are audited.
*JOBDTA- Actions that affect a job are audited.
*NETBAS- Network base functions are audited. The following are some examples: IP rules actions Sockets connections APPN Directory search filter APPN end point filter.
*NETCLU- Cluster or cluster resource group operations are audited. The following are some examples: Add, create, and delete Distribution End Fail over List information Removal Start Switch Update attributes.
*NETCMN- Networking and communications functions are audited.
*NETFAIL- Network failures are audited. The following is an example: Socket port not available.
*NETSCK- Sockets tasks are audited. The following are some examples: Accept Connect DHCP address assigned DHCP address not assigned Filtered mail Reject mail Note: Telnet server connections are not audited as part of *NETSCK.
*NETSECURE- Secure network connections are audited.
*NETTELSVR- Telnet Server connections are audited.
*NETUDP- User Datagram Protocol (UDP) traffic is audited. The following are some examples: UDP packets sent UDP packets received Note: UDP traffic for the same local and remote address and port is audited only once every 12 hours by default.
*NOTAVL- The user performing the command is not allowed to display the current auditing value. You cannot change the system value to not available (*NOTAVL).
*OBJMGT- Generic object tasks are audited. The following are some examples: Moves of objects Renames of objects.
*OFCSRV- OfficeVision are audited. The following are some examples: Changes to the system distribution directory Tasks involving electronic mail.
*OPTICAL- All optical functions are audited.
*PGMADP- Adopting authority from a program owner is audited.
*PGMFAIL- Program failures are audited. The following are some examples: Blocked instruction Validation value failure Domain violation.
*PRTDTA- Printing functions are audited. The following are some examples: Printing a spooled file Printing with parameter SPOOL(*NO)
*PTFOBJ- Changes to Program Temporary Fix (PTF) objects are audited. The following are some examples: Library objects such as *PGM and *SRVPGM objects. Replaceable Unit (RU) objects for LIC PTFs. Integrated File System (IFS) objects.
*PTFOPR- Program Temporary Fix (PTF) operations are audited. The following are some examples: Load, apply, or remove a PTF. Log or delete a PTF save file. Install PTFs using GO PTF or INSPTF command.
*SAVRST- Save and restore information is audited.
*SECCFG- Security configuration is audited.
*SECDIRSRV- Changes or updates when doing directory service functions are audited. The following are some examples: Audit change Successful bind Authority change Password change Ownership change Successful unbind.
*SECIPC- Changes to interprocess communications are audited. The following are some examples: Ownership or authority of an IPC object changed Create, delete or get of an IPC object Shared memory attach.
*SECNAS- Network authentication service actions are audited.
*SECRUN- Security run time functions are audited. The following are some examples: Changes to object ownership Changes to authorization list or object authority Changes to the primary group of an object.
*SECSCKD- Socket descriptors are audited. The following are some examples: A socket descriptor was given to another job Receive descriptor Unable to use descriptor.
*SECURITY- All security-related functions are audited.
*SECVFY- Use of verification functions are audited.
*SECVLDL- Changes to validation list objects are audited. The following are some examples: Add, change, remove of a validation list entry Find of a validation list entry Successful and unsuccessful verify of a validation list entry.
*SERVICE- For a list of all the service commands and API calls that are audited, see the IBM i Security Reference, SC41-5302 publication.
*SPLFDTA- Spooled file functions are audited. The following are some examples: Create, delete, display, copy, hold, and release a spooled file Get data from a spooled file (QSPGETSP) Change spooled file attributes (CHGSPLFA command)
*SYSMGT- System management tasks are audited.
INLJRNRCV
Initial journal receiver
The journal receiver that is created as the initial journal receiver when the security audit journal, QAUDJRN is created. This parameter is ignored if the security audit journal exists.
AUDRCV0001- The default value for the initial journal receiver.
name (initial journal receiver)- The name of the journal receiver being created.
QGPL- The default library value for the initial journal receiver.
*CURLIB- The current library for the job is used to locate the journal receiver. If no library is specified as the current library for the job, QGPL is used.
name (library)- The library where the journal receiver is to be created.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Initial journal receiver
Initial journal receiver
Library
Library
Suggested / special values:
*CURLIB
Examples
CHGSECAUD QAUDCTL(*AUDLVL) QAUDLVL(*DFTSET)
Will activate system security auditing by ensuring the security journal exist, setting the QAUDCTL system value to *AUDLVL, and setting the QAUDLVL system value to the default set of values.
CHGSECAUD QAUDCTL(*AUDLVL) QAUDLVL(*AUTFAIL *CREATE *DELETE *JOBDTA *NETBAS *NETFAIL *OBJMGT *OPTICAL *PGMADP *PGMFAIL *PRTDTA *SAVRST *SECCFG *SECDIRSRV *SECRUN *SERVICE *SPLFDTA *SYSMGT)
Will activate system security auditing by ensuring the security journal exist, setting the QAUDCTL system value to *AUDLVL, and setting the QAUDLVL and QAUDLVL2 system values to the specified values. QAUDLVL system value will contain *AUDLVL2, *AUTFAIL, *CREATE, *DELETE, *JOBDTA, *NETBAS, *NETFAIL, *OBJMGT, *OPTICAL, *PGMADP, *PGMFAIL, *PRTDTA, *SAVRST, *SECCFG, *SECDIRSRV, *SECRUN. QAUDLVL2 system value will contain *SERVICE, *SPLFDTA, *SYSMGT.
Generated from os/cl/catalog/CHGSECAUD.json and os/cl/help/CHGSECAUD.json.