XYGATE Compliance PRO (XSW) Reference Manual
XYGATE
®
Compliance PRO
™
Reference Manual
Appendix C: XSW Host Macros
XYPRO Technology Corporation 248 Proprietary and Confidential
C5: XSW_EDIT_ACL
The XSW_EDIT_ACL macro automates the recommended method of changing the
SWACL file.
First, the macro makes a duplicate of the current SWACL file and names it
NEWSWACL. Then it presents the duplicate, NEWSWACL, for editing.
After all the editing changes are done, the NEWSWACL is checked for syntax errors.
If no errors are found, XSW_EDIT_ACL asks if you want to install the new ACL.
If you enter Y, the NEWSWACL is renamed to SWACL. Prior to renaming the
NEWSWACL file, the old SWACL is renamed to OLDACLnnn, where nnn is an
incrementing three-digit number. Twenty iterations of the OLDACLnnn files are
retained in the XSW subvolume.
If you enter N, XSW_EDIT_ACL asks if you want to purge the NEWSWACL file. You
can enter Y to purge the file or N to keep it to edit later.
If a NEWSWACL file already exists when you call XSW_EDIT_ACL, it begins by
asking if you want to re-edit it. If you do not want to re-edit it, your only remaining
choice is to purge it or keep if for later.
Example - Typical usage
This example shows the typical usage of the XSW_EDIT_ACL macro assuming that
no errors are encountered.
Example 1:
$SYSTEM.XYGATESW 5> XSW_EDIT_ACL
This file edits the current XYGATE-SECURITY-WIZARD
list. It will create a file named $SYSTEM.XYGATESW.NEWSWACL from
the current $SYSTEM.XYGATESW.SWACL file.
These are your old $SYSTEM.XYGATESW.SWACL files:
$SYSTEM.XYGATESW
CODE EOF LAST MODIFIED OWNER RWEP PExt SExt
OLDACL00 101 3078 17AUG2012 3:03 222,233 NUUU 2 2
OLDACL01 101 3316 17AUG2012 3:57 222,233 NUUU 2 2
FILES DUPLICATED: 1
TEXT EDITOR - T9601H01 - (01MAY05)
CURRENT FILE IS $SYSTEM.XYGATESW.NEWSWACL
*
Make changes here using edit.
*e