Automatic and Manual GuardPoints
A CTE Agent GuardPoint is usually applied immediately after it is configured in the Management Console. This is called an Automatic GuardPoint. However, GuardPoints can also be applied later on a client system. This is called a Manual GuardPoint.
Applying a GuardPoint later
You might want to apply the GuardPoint later when, for example, you have the case of a 2-node protected cluster configured as active/passive in a cluster environment, such as a Veritas Cluster Server (VCS) or IBM PowerHA (formerly HACMP). There are two nodes, one which is currently active and the other that is currently inactive. Both nodes are locked. You apply GuardPoint protection to active nodes only. You should never apply a GuardPoint to a passive node. If the active node develops a problem and tries to switch over to the inactive node, the cluster process will fail to switch over because the mirror directory on the inactive node is currently mounted on the active node. The solution is for the cluster process to unmount/unguard the currently active node, place it in an inactive state, place the old inactive node in an active state, and then mount/guard the mirror directory on the newly active node. Inappropriate switching can result in messages like:
-
invalid GuardPoint -
The directory is not on cluster file system partition shared across nodes -
secfsd Failed to unguard <dirpath> - will retry later -
Agent is calling clean for resource <resource name> because the resource became OFFLINE unexpectedly, on its own.
Generally, when you get messages like these, check that only active nodes are properly guarded.
The GuardPoint type is usually set to Auto Directory for file system-based directories and toAuto Raw or Block Devicewhen applying GuardPoint protection to raw or block devices. When an auto GuardPoint is applied, regardless if it is a file system directory or a raw device, the change is pushed to the client system, and the GuardPoint is applied immediately. This is evident by using thedfcommand to displaysecfsmounts (for example, GuardPoints) orsecfsdto display the GuardPoints themselves. Thesecfsdoutput shows a guard type oflocalfor directories configured withDirectory (Auto Guard)`.
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 40123784 11352236 26733380 30% /
/dev/sda1 101086 14590 81277 16% /boot
none 254492 0 254492 0% /dev/shm
/opt/vormetric/DataSecurityExpert/agent/secfs/.sec
40123784 11352236 26733380 30% /opt/vormetric/DataSecurityExpert/agent/secfs/.sec
/opt/apps/apps1/tmp 40123784 11352236 26733380 30% /opt/apps/apps1/tmp
/opt/apps/apps1/lib 40123784 11352236 26733380 30% /opt/apps/apps1/lib
/opt/apps/apps1/doc 40123784 11352236 26733380 30% /opt/apps/apps1/doc
# secfsd -status guard
GuardPoint Policy Type ConfigState Status Reason
---------- ------ ---- ------------- ------ ------
/opt/apps/apps1/tmp allowAllOps_fs local guarded guarded N/A
/opt/apps/apps1/lib allowAllRootUsers_fs local guarded guarded N/A
/opt/apps/apps1/doc allowAllOps-winusers1_fs local guarded guarded N/A
When a manual GuardPoint is applied, regardless if it is a file system directory or a raw device, the change is pushed to the client system only. The client is aware of the GuardPoint but the client does not enable the protection policy on the GuardPoint. This is indicated in the Type column of the “secfsd -status guard” output. For example, the GuardPoint /opt/apps/apps2/bin has been configured with Directory (Manual Guard) so the guard type is set to “manual”.
# secfsd -status guard
GuardPoint Policy Type ConfigState Status Reason
---------- ---------- ---- ----------- ------ -----
/opt/apps/apps1/tmp allowAllOps_fs local guarded guarded N/A
/opt/apps/apps1/lib allowAllRootUsers_fs local guarded guarded N/A
/opt/apps/apps1/doc allowAllOps-winusers1_fs local guarded guarded N/A
/opt/apps/apps2/bin HR_policy01 manual unguarded not guarded Inactive
Note the Type value. A Type of manual indicates a manual GuardPoint. A Type of local indicates an automatic GuardPoint.
A manually applied GuardPoint retains a yellow triangle status (Pending) in the Management Console until the GuardPoint is applied on the host. After the GuardPoint is applied on the host, and the client communicates the change to the server, the status changes to (Normal). It returns to the yellow triangle when the GuardPoint is manually disabled on the CTE host.
Use the secfsd command to guard and unguard Directory (Manual Guard) and Raw or Block Device (Manual Guard) GuardPoints disabled on the CTE host.
Note
The terms guard and unguard are equivalent to enable and disable, respectively, from the CTE client management perspective. Unguarding on the CTE host, using the secfsd -unguard command, disables protection on the GuardPoint without affecting the application of the policy applied to the GuardPoint on the key manager. Similarly, guarding on the CTE host, using the secfsd -guard command, enables the protection on the GuardPoint using the policy that is already applied to the GuardPoint on the key manager.
The secfsd syntax is:
secfsd -guard <path>
secfsd -unguard <path>
Note
In zone-based CTE Agent deployments, such as Solaris Zones, always specify paths relative to the global zone, never the local zone. Also, you must guard and unguard manual GuardPoints in the global zone.
For example, to manually guard and unguard a file system directory:
-
Configure a GuardPoint with the type Directory (Manual Guard).
-
Log onto the protected client with CTE Agent as the root user.
-
Wait until the configuration change is downloaded to the protected host.
You can run the status command until you see the manual GuardPoint. For example:
# secfsd -status guard GuardPoint Policy Type ConfigState Status Reason ---------- ------ ---- ----------- ------ ------ /opt/apps/etc allowAllOps_fs manual unguarded not guarded N/A /opt/apps/lib/dx3 allowAllOps_fs local guarded guarded N/A -
Enable the GuardPoint.
# secfsd -guard /opt/apps/apps2/bin secfsd: Guard initiatedThe GuardPoint is active and the policy is enforced.
-
Disable the GuardPoint.
# secfsd -unguard /opt/apps/apps2/bin secfsd: Unguard initiated