DB2 10.5 for Linux, UNIX, and Windows

ALTER SECURITY POLICY statement

The ALTER SECURITY POLICY statement modifies a security policy.

Invocation

This statement can be embedded in an application program or issued interactively. It is an executable statement that can be dynamically prepared only if DYNAMICRULES run behavior is in effect for the package (SQLSTATE 42509).

Authorization

The privileges held by the authorization ID of the statement must include SECADM authority.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-ALTER SECURITY POLICY--security-policy-name------------------>

   .------------------------------------------------------.   
   V                                                (1)   |   
>----+-ADD SECURITY LABEL COMPONENT--component-name-----+-+----><
     +-+-OVERRIDE NOT AUTHORIZED WRITE SECURITY LABEL-+-+     
     | '-RESTRICT NOT AUTHORIZED WRITE SECURITY LABEL-' |     
     +-+-USE GROUP AUTHORIZATIONS----+------------------+     
     | '-IGNORE GROUP AUTHORIZATIONS-'                  |     
     '-+-USE ROLE AUTHORIZATIONS----+-------------------'     
       '-IGNORE ROLE AUTHORIZATIONS-'                         

Notes:
  1. Only the ADD SECURITY LABEL COMPONENT clause can be specified more than once.

Description

security-policy-name
Specifies the name of the security policy to be altered. The name must identify an existing security policy at the current server (SQLSTATE 42710).
ADD SECURITY LABEL COMPONENT component-name
Adds a security label component to the security policy. The same security component must not be specified more than once for the security policy (SQLSTATE 42713). The security policy cannot currently be in use by a table (SQLSTATE 42893).
OVERRIDE NOT AUTHORIZED WRITE SECURITY LABEL or RESTRICT NOT AUTHORIZED WRITE SECURITY LABEL
Specifies the action taken when a user is not authorized to write the explicitly specified security label that is provided in the INSERT or UPDATE statement issued against a table that is protected with this security policy. A user's security label and exemption credentials determine the user's authorization to write an explicitly provided security label.
OVERRIDE NOT AUTHORIZED WRITE SECURITY LABEL
Indicates that the value of the user's security label, rather than the explicitly specified security label, is used for write access during an insert or update operation.
RESTRICT NOT AUTHORIZED WRITE SECURITY LABEL
Indicates that the insert or update operation will fail if the user is not authorized to write the explicitly specified security label that is provided in the INSERT or UPDATE statement (SQLSTATE 42519).
USE GROUP AUTHORIZATION or IGNORE GROUP AUTHORIZATION
Specifies whether or not security labels and exemptions granted to groups, directly or indirectly, are considered for any access attempt.
USE GROUP AUTHORIZATION
Indicates that any security labels or exemptions granted to groups, directly or indirectly, are considered.
IGNORE GROUP AUTHORIZATION
Indicates that any security labels or exemptions granted to groups are not considered.
USE ROLE AUTHORIZATION or IGNORE ROLE AUTHORIZATION
Specifies whether or not security labels and exemptions granted to roles, directly or indirectly, are considered for any access attempt.
USE ROLE AUTHORIZATION
Indicates that any security labels or exemptions granted to roles, directly or indirectly, are considered.
IGNORE ROLE AUTHORIZATION
Indicates that any security labels or exemptions granted to roles are not considered.

Rules

Notes

Examples