Security Management Guide (G06.24+, H06.03+)

Security Management Guide522283-008
C-1
C TACL Macros
The following macros are intended only as examples of how to develop security
macros. These examples might not work with all releases and configurations of the
operating system.
To use TACL routines, store them in a file and then use the LOAD command to load
them into your TACL.
Example 1. Snapshot Routine
The following TACL snapshot routine captures major parameters that describe a
collection of files. The routine then puts these descriptions in a snapshot file. Later, you
can invoke the TACL snapshotcheck routine (Example 2) to compare the current state
of the system with the values in the snapshot file and get a report of differences.
?section snapshot ROUTINE
#frame
== define subroutine to be called by FAPPLY later:
[#def :^snapshotter routine |body|
#frame
[#push
:^fullname
:^code
:^eof
:^licensed
:^modification
:^owner
:^progid
:^security
]
== get info on the file passed as parameter:
[#setmany
:^fullname
:^code
:^eof
:^licensed
:^modification
:^owner
:^progid
:^security
,
[#fileinfo /
fullname,
code,
eof,
licensed,
modification,
owner,
progid,
security
/ [#rest] ]
]