How do I setup ACF2 rules for the IFASMF resource?
The IFASMF resource is used to check authority to read the SMF log stream or in-memory resource.
With ACF2 resources do not need to be defined, all resources are protected by default.
The following provide details on setting up ACF2 rules for the IFASMF resource.
Read the SMF Log Stream
You must give this user ID the READ authority to the profile that you set up to secure your SMF log stream or in-memory resource, where IFASMF.resource is the name of the SMF log stream or in-memory resource that is being used to capture SMF records
PERMIT IFASMF.resource CLASS(LOGSTRM) ACCESS(READ) ID(userid)
The ACF2 equivalent:
The default resource type for LOGSTRM is SAF. If you want to use a different type code, insert a GSO CLASMAP record as follows:
ACF
SET CONTROL(GSO)
INSERT CLASMAP.logstrm RESOURCE(LOGSTRM) RSRCTYPE(log)
F ACF2,REFRESH(CLASMAP)
Where log is the type code you select.
Sample ACF2 Rule:
ACF
SET RESOURCE(LOG)
RECKEY IFASMF ADD( resource UID(userid) SERVICE(READ) ALLOW)
* where userid is the UID string of the logonid accessing the resource.
Read the In-Memory Resource
PERMIT IFA.IFASMF.resource CLASS(FACILITY) ACCESS(READ) ID(userid)
where userid is the user ID associated with the System Data Engine.
Sample ACF2 Rule:
ACF
SET RESOURCE(FAC)
RECKEY IFA ADD( IFASMF.resource UID(userid) SERVICE(READ) ALLOW)
F ACF2,REBUILD(FAC)
* where userid is the UID string of the logonid associated with the System Data Engine