Oracle Label Security can implement the releasability using inverse groups.
Topics:
Inverse groups indicate releasability of information. They are used to mark the dissemination of data. When you add an inverse group to a data label, the data becomes less classified.
For example, a user with inverse groups UK and US cannot access data that only has inverse group UK. Adding US to that data makes it accessible to all users with the inverse groups UK and US.
When you assign releasabilities to a user, you mark the communication channel to the user. For data to flow across the communication channel, the data releasabilities must dominate the releasabilities assigned to the user. In other words, releasabilities assigned to a data record must contain all the releasabilities assigned to a user.
The advantage of releasabilities lies in their power to broadly disseminate information. Releasing data to the entire marketing organization becomes as simple as adding the Marketing releasability to the data record.
Groups in Oracle Label Security identify organizations that own or access data. Like standard groups, inverse groups control the dissemination of information.
However, the behavior of inverse groups differs from Oracle Label Security standard group behavior. By default, all policies created in Oracle Label Security use the standard group behavior.
The term, releasabilities is sometimes used to refer to the behavior provided by inverse groups. When you include inverse groups in a data label, the effect is similar to assigning label compartment authorizations to a user. When Oracle Label Security evaluates whether a user can view a row of data assigned to a label with inverse groups, it checks to see whether the data, not the user, has the appropriate group authorizations. It checks whether the data has all the inverse groups assigned to the user. With standard groups, by contrast, Oracle Label Security checks to see whether a user is authorized for at least one of the groups assigned to a row of data.
Consider a policy that contains three standard groups such as, Eastern, Western, and Southern. User1's label authorizations include the groups Eastern and Western. Assuming that User1 has been assigned the appropriate level and compartment authorizations in the policy, then:
With standard Oracle Label Security groups, User1 can view all data records that have the group Eastern, or the group Western, or both Eastern and Western.
With inverse groups, User1 can only view data records that have, at a minimum, all the groups assigned to the user, that is, both Eastern and Western. User1 cannot view records that have only the Eastern group, only the Western group, or that have no groups at all.
Table 13-1 shows all the rows that User1 can potentially access, given the type of group that is used in the policy.
Table 13-1 Access to Standard Groups and Inverse Groups
If row label contains groups: | User1 access with standard groups? | User1 access with inverse groups? |
---|---|---|
None |
Y |
N |
|
Y |
N |
|
Y |
N |
|
N |
N |
|
Y |
Y |
|
Y |
N |
|
Y |
N |
|
Y |
Y |
Standard groups indicate ownership of information. In this way, all data pertaining to a certain department can have that department's group in the label. When you add a group to a data label, the data becomes more classified. For example, a user with no groups can access data that has no groups in its label. If you add the group US to the data label, the user can no longer access the data.
See Also:
Inverse groups are implemented in a special way and are organized to suit the needs of Oracle Label Security.
Topics:
When creating an Oracle Label Security policy, you can specify whether the policy can use inverse group functionality to implement releasability.
To do this, you must specify INVERSE_GROUP
as one of the default_options
in the CREATE_POLICY
statement.
The INVERSE_GROUP
option can be set only at policy creation time. Once a policy is created, this option cannot be changed.
The INVERSE_GROUP
option is thus policywide. It cannot be turned on or off when the policy is applied to a table or schema. If you attempt to do so, using the procedure APPLY_TABLE_POLICY
or APPLY_SCHEMA_POLICY
, then an error will be generated.
While other policy enforcement options can be dropped from a policy, the INVERSE_GROUP
policy configuration option cannot be dropped once it is set. To remove the option, you must drop and then re-create the policy.
You can give individual users authorization for one or more inverse groups.
When an Oracle Label Security policy is created with the inverse group option, the components in the policy label (levels, compartments, and groups) are the same as with standard groups. With inverse groups, however, the user's read groups and write groups have a different meaning and role in data access.
Consider the following policy example, with three levels, one compartment, and three groups:
Table 13-2 Policy Example
Policy Component | Abbreviation |
---|---|
Levels: |
|
|
|
|
|
|
|
Compartments: |
|
|
|
Groups: |
|
EASTERN |
EAS |
WESTERN |
WES |
SOUTHERN |
SOU |
Two user labels have been assigned, CON:FIN
and SE:FIN:EAS
,WES
Two data labels have been assigned, CON:FIN:EAS
and SE:FIN:EAS
User access to the data differs, depending on the type of group being used:
If the policy uses standard groups, then:
The user with the label CON:FIN
cannot read CON:FIN:EAS
data.
The user with the label SE:FIN:EAS
,WES
can read SE:FIN:EAS
data.
If the policy has the INVERSE
GROUPS
policy enforcement option, then:
The user with the label CON: FIN
can read CON:FIN:EAS
data.
The user with the label SE:FIN:EAS
,WES
cannot read SE:FIN:EAS
data.
After the administrator assigns label authorizations to a user, Oracle Label Security automatically computes a number of labels.
With inverse groups, these labels are as follows:
Table 13-3 Computed Session Labels with Inverse Groups
Computed Label | Definition |
---|---|
Max Read Label |
The user's maximum level combined with his or her authorized compartments and the minimum set of inverse groups that should be in the user label (session label) |
Max Write Label |
The user's maximum level combined with the compartments for which the user has been granted write access. Contains the maximum authorized inverse groups that can be set in any label. The user has write authorizations on all these inverse groups. |
Min Write Label |
The user's minimum level. |
Default Read Label |
The default level, combined with compartments and inverse groups that have been designated as default for the user. |
Default Write Label |
A subset of the default read label, containing the compartments and inverse groups for which the user has been granted write access. However the inverse groups component has no significance as it is the Max Write Groups that is always used for write access. |
Default Row Label |
The combination of components between the user's minimum write label and the maximum write label, which has been designated as the default for the data label for inserted data. The Inverse groups should be a superset of inverse groups in the default label and a subset of Max Write Groups. |
See Also:
From the computed values in Table 13-3, two sets of groups are identified for label evaluation of read and write access.
Table 13-4 Sets of Groups for Evaluating Read and Write Access
As shown in Table 13-5, for standard groups you can have READ
ONLY
and READ
/WRITE
authorizations; for inverse groups you can have WRITE
ONLY
and READ
/WRITE
authorizations.
Table 13-5 Read and Write Authorizations for Standard Groups and Inverse Groups
Type of Group | READ ONLY | READ/WRITE | WRITE ONLY |
---|---|---|---|
Standard Groups |
The group is present only in Max Read Label, not in Max Write Label. |
The group is present in both Max Read Label and Max Write Label. |
Not supported |
Inverse Groups |
Not supported |
The group is present in both Max Read Label and Max Write Label. |
The group is present only in Max Write Label, not in Max Read Label. |
Although Max Read Groups identifies the set of groups contained in the Max Read Label, this value represents the minimum set of inverse groups that can be set. For example:
Max Read Groups: S:C1:G1
,G2
Max Write Groups: S:C1:G1
,G2
,G3
,G4
,G5
Here, the user can read data that contains at least the two groups listed in Max Read Groups.
Note that in standard groups, there can never be a situation in which there are more groups in the Max Write Label than in the Max Read Label.
Standard groups in Oracle Label Security are hierarchical, so that a group can be associated with a parent group. For example, the EASTERN
region can be the parent of two subordinate groups: EAS_SALES
, and EAS_HR
.
In a policy with standard groups, if the user label has the parent group, then it can access all data of the subordinate groups.
With inverse groups, parent-child relationships are not supported.
With inverse groups implemented, the meaning of user privileges remains the same.
When the user has no special privileges, then the read algorithm and the write algorithm are different for standard groups and inverse groups. The differences are described later, in "Algorithm for Read Access with Inverse Groups" and "Algorithm for Write Access with Inverse Groups".
The effect of inverse groups on the COMPACCESS privilege is described later, in "Algorithms for COMPACCESS Privilege with Inverse Groups".
Inverse groups have no impact upon the following user privileges:
PROFILE_ACCESS
WRITEUP
WRITEDOWN
WRITEACROSS
You should understand how the algorithm for read access with inverse groups works.
To read data in a table with the INVERSE
GROUP
option in effect, the label evaluation process proceeds from levels to groups to compartments, as illustrated in Figure 13-1. (Note that the current session label is the label being evaluated.)
The user's level must be greater than or equal to the level of data.
The user's label must include all the compartments assigned to the data
The groups in the data label must be a superset of the groups in the user label.
If the user's label passes these tests, then the user can access the data. If not, the user is denied access. Note that if the data label is null or invalid, then the user is denied access.
Note:
This flow diagram is true only when the user has no special privileges.
Figure 13-1 Read Access Label Evaluation with Inverse Groups
You should understand the algorithm for write access with inverse groups.
To write data in a table with the INVERSE
GROUP
option, the label evaluation process proceeds from levels to groups to compartments, as illustrated in Figure 13-2. (Note that the current session label is the label being evaluated.)
The level in the data label must be greater than or equal to the user's minimum level, and less than or equal to the user's session level.
One of the following conditions must be met:
The groups in the data label must be a superset of the groups in the user label.
or
The user has READ
access privilege on the policy.
The user's Max Write Groups must be a superset of the data label groups.
The user label must have write access on all of the compartments in the data label.
Note that if the data label is null or invalid, then the user is denied access.
Note:
This flow diagram is true only when the user has no special privileges.
Figure 13-2 Write Access Label Evaluation with Inverse Groups
Oracle provides algorithms for read and write access with inverse groups, for users who have COMPACCESS
privilege.
The COMPACCESS
privilege allows a user to access data based on the row's compartments, independent of the row's groups.
When compartments exist and access to them is authorized, then the group authorization is bypassed.
If a row has no compartments, then access is determined by the inverse group authorizations.
Figure 13-3 and Figure 13-4 show the label evaluation process for read access and write access for a user with the COMPACCESS
privilege. If the data label is null or invalid, then the user is denied access.
(Note that the current session label is the label being evaluated.)
Figure 13-3 Read Access Label Evaluation: COMPACCESS Privilege and Inverse Groups
Figure 13-4 Write Access Label Evaluation: COMPACCESS Privilege and Inverse Groups
The use of inverse groups affects the behavior of Oracle Label Security procedures that determine the session label.
The SA_USER_ADMIN.SET_DEFAULT_LABEL
and SA_USER_ADMIN.SET_ROW_LABEL
procedures set the user's initial session label and row label, respectively, to the one specified.
A user's default session label can be changed using SA_USER_ADMIN.SET_DEFAULT_LABEL
.
In the case of standard groups, the default session label can be set to include any groups in the authorized list, as long as the current default row label will still be dominated by the new write label. That is, the row label will have the same or fewer standard groups than the new write label.
The same rule applies for SA_USER_ADMIN.SET_ROW_LABEL
.
In the case of inverse groups, the default session label can be set to include any groups in the authorized list, as long as the current default row label will still be dominated by the new write label.
That is, the row label will have the same or more inverse groups than the new write label.
The same rule applies for SA_USER_ADMIN.SET_ROW_LABEL
.
You can set the current session or row labels for standard or inverse groups.
Topics:
With standard groups, the SA_SESSION.SET_LABEL
procedure can be used to set the session label to include any groups in the user's authorized group list. (Subgroups of authorized groups are implicitly included in the authorized list.)
Note that if you change the session label, then this may affect the value of the session's row label.
Use the SET_ROW_LABEL
procedure to set the row label value for the current database session. The compartments and groups in the label must be a subset of compartments and groups in the session label to which the user has write access.
With inverse groups, the addition of groups to the session label decreases a user's ability to access sensitive data with fewer groups.
The removal of groups enables the user to access more sensitive information. So, the user should be allowed to add groups to the session label, as long as Max Read Groups is a subset of the groups in the session label, and Max Write Groups is a superset of groups in the session label. The same restriction applies when a user removes groups from the session label.
Note that there are no subgroups of authorized groups when using inverse groups. This is because parent groups are not allowed in policies using inverse groups.
Use the SET_ROW_LABEL
procedure to set the row label value for the current database session. The compartments in the label must be a subset of compartments in the session label to which the user has write access.
The user is allowed to add inverse groups to the row label, as long as the session label inverse groups are a subset of the row label inverse groups, and Max Write Groups is a superset of inverse groups in the row label.
For example:
If the user has the inverse groups UK and US as his Max Read Groups, and UK
,US
,CAN
as his Max Write Groups. The user can set his session label to C:ALPHA:UK
,US
,CAN
but not to C:ALPHA:UK
.
If the user has the inverse group UK
as his Max Read Groups, and UK
,CAN
as his Max Write Groups.assigned to him. The user can set the session label to C:ALPHA:UK
,CAN
but cannot change it to either C:ALPHA
or C:ALPHA:UK
,US
,CAN
.
See Also:
Oracle provides examples of using inverse groups.
Topics:
Consider a User1, of a policy implementing inverse groups, with a set of special labels.
Table 13-6 Labels for Inverse Groups Example 1
Name | Definition |
---|---|
Max Read Label |
|
Max Write Label |
|
Default Read Label |
|
Default Write Label |
|
Default Row Label |
|
From which the following values are derived: |
|
Max Read Groups |
|
Max Write Groups |
|
The following conclusions can be drawn:
User1 can update data with label SE:ALPHA:G1
,G2
as well as data with label SE:ALPHA:G1
,G2
,G3
. User1
cannot, however, update label SE:ALPHA:G1
.
If standard groups were being used, rather than inverse groups, then User1
could update data with label SE:ALPHA:G1
.
Data that User1 inserts has the label SE:ALPHA:G1
,G2
. (This is the same as with standard groups.)
If User1 leaves the default label as is, and sets the row label to SE:ALPHA:G1
,G2
,G3
, then user1
will insert SE:ALPHA:G1
,G2
,G3
in new rows of data that is written. (In standard groups, User1 can never set more groups in the row label than in the default label.)
Consider a User01
, of a policy implementing inverse groups, with a set of special labels.
Table 13-7 Labels for Inverse Groups Example 2
Name | Definition |
---|---|
Max Read Label |
|
Max Write Label |
|
Default Read Label |
|
Default Write Label |
|
Default Row Label |
|
From which the following values are derived: |
|
Max Read Groups |
(an empty set) |
Max Write Groups |
|
The following conclusions can be drawn:
User01 can update any data with level C, compartment ALPHA
, and any combination of groups G1
, G2
, G3
, or no groups. User01
inserts the label C:ALPHA:
in new data that User01
writes.
User02
, who has Max Read Groups of G1
,G2
or G1
,G3
, and so on, will not be able to view the data written by User01
. This is because User01
's Default Row Label contains no groups.
User01
can choose to set inverse groups in the row label, as long as the inverse groups in the session label dominates the row label (that is, User01
's session label contains the same or fewer groups than contained in the row label).
This is true because the row label must have at least the groups in the session label, and can at most have the Maximum Write Groups. If the session label is G1
, then you can set the groups in the row label from G1
to the Max Write Groups (G1
,G2
,G3
).
If User01
sets his session label and row label to C:ALPHA:G1
:G2
:G3
, then his data becomes accessible to anyone who has any combination of G1
,G2
,G3
in his Max Read Groups.
See Also:
When the INVERSE_GROUP
option is specified at the time the policy is created, a change occurs in the algorithms that determine the read and write access of the user to labeled data.
Topics:
The SA_SYSDBA.CREATE_POLICY
procedure under the SA_SYSDBA
package creates the policy, defines an optional policy-specific column name, and specifies a set of default policy options.
With inverse group support the, user has one more policy enforcement option, INVERSE_GROUP
. For example:
PROCEDURE CREATE_POLICY ( HR IN VARCHAR2, SA_LABEL IN VARCHAR2 DEFAULT NULL, INVERSE_GROUP IN VARCHAR2 DEFAULT NULL);
See Also:
The SA_SYSDBA.ALTER_POLICY
procedure under the SA_SYSDBA
package enables you to change a policy's default enforcement options, except for the INVERSE_GROUP
option.
Once a policy is configured for inverse groups, it cannot be changed. You can also change the column names associated with an OLS policy.
See Also:
The SA_USER_ADMIN.ADD_GROUPS
procedure adds groups to a user, indicating whether the groups are authorized for write as well as read.
The type of access authorized depends on the access_mode
parameter.
Table 13-8 Access Authorized by Values of access_mode Parameter
Access_Mode Parameter | Meaning |
---|---|
|
Indicates that write is authorized. (That is, the group is contained in both Max Read Groups and Max Write Groups.) |
|
Indicates that the group is contained in Max Write Groups and not in Max Read Groups |
|
If If If |
|
Specifies whether these groups should be in the default groups ( If If access mode is If access mode is |
|
Specifies whether these groups should be in the row label ( However, if |
Note that if in_def
is Y
in a row, then in_row
must also be set to Y
, but not the other way round.
The same is the case with the in_row
field.
See Also:
The SA_USER_ADMIN.ALTER_GROUPS
procedure changes the write access, the default label indicator, and the row label indicator for each of the groups in the list.
The behavior of inverse groups is the same as described in the case of ADD_GROUPS
.
See Also:
Syntax for "SA_USER_ADMIN.ALTER_GROUPS"
The SA_USER_ADMIN.SET_GROUPS
procedure assigns groups to a user and identifies default values for the user's session label and row label.
Inverse groups are handled differently than standard groups, as follows:
Table 13-9 Assigning Groups to a User
Group Set Name | Meaning |
---|---|
|
A comma-delimited list of groups that would be Max Read Groups |
|
A comma-delimited list of groups that would be Max Write Groups. It must be a superset of If |
def_groups |
Specifies the default groups. It should at least have If |
|
Specifies the row groups. It should at least have the If |
See Also:
Syntax for "SA_USER_ADMIN.SET_GROUPS"
The SA_USER_ADMIN.SET_USER_LABELS
procedure sets the user's levels, compartments, and groups using a set of labels, instead of the individual components.
Inverse groups are handled differently than standard groups, as follows:
Table 13-10 Inverse Group Label Definitions
Name | Definition |
---|---|
|
Specifies the label string to be used to initialize the user's maximum authorized read label. Composed of the user's maximum level, compartments authorized for read access, and if inverse groups, minimum set of groups that can be set in any label.(Max Read Groups) |
|
Specifies the label string to be used to initialize the user's maximum authorized write label. Composed of the user's maximum level, compartments authorized for write access, and if inverse groups, the maximum authorized groups that can be set in any label (Max Write Groups). All the inverse groups in this have write authorization also. It should be a superset of groups in |
|
Specifies the label string to be used to initialize the user's session label, including level, compartments, and groups (a subset of |
|
Specifies the label string to be used to initialize the program's row label. Includes levels, compartments, and groups: subsets of |
See Also:
Syntax for "SA_USER_ADMIN.SET_USER_LABELS"
The SA_USER_ADMIN.SET_DEFAULT_LABEL
procedure sets the user's initial session label to the one specified.
All the rules mentioned for setting inverse groups component of session label mentioned in "Session Labels and Inverse Groups" are applicable here.
See Also:
Syntax for "SA_USER_ADMIN.SET_DEFAULT_LABEL"
Use the SA_COMPONETS.CREATE_GROUP
procedure to create a group and specify its short name and long name, and optionally a parent group.
With inverse groups, the parent_name
field should always be NULL
. If the user specifies a value for this field, then an error message is displayed, indicating that the group hierarchy is disabled.
See Also:
Syntax for "SA_COMPONENTS.CREATE_GROUP"
The SA_COMPONENTS.ALTER_GROUP_PARENT
function is disabled for policies with the inverse group option.
An error message is displayed if the user calls this function.
See Also:
Syntax for "SA_COMPONENTS.ALTER_GROUP"
The LEAST_UBOUND
(LUBD) function returns a character string label that is the least upper bound of label1 and label2 that is, the one label that dominates both.
With standard groups, the least upper bound is the highest level, the union of the compartments in the labels, and the union of the groups in the labels.
With inverse groups, the least upper bound is the highest level, the union of the compartments in the labels, and the intersection of the inverse groups in the labels.
For example, with inverse groups, the least upper bound of HIGHLY_SENSITIVE
:ALPHA:G1
,G2
and SENSITIVE:BETA:G1
is HIGHLY_SENSITIVE:ALPHA
,BETA:G1
.
The GREATEST_LBOUND
(GLBD) function determines the lowest label of the data that can be involved in an operation, given two different labels. It returns a character string label that is the greatest lower bound of label1 and label2.
With standard groups, the greatest lower bound is the lowest level, and the intersection of the compartments in the labels and the groups in the labels.
With inverse groups, the greatest lower bound is the lowest level, and the intersection of the compartments in the labels and the union of inverse groups in the labels.
For example, with inverse groups the greatest lower bound of HIGHLY_SENSITIVE:ALPHA:G1
,G3
and SENSITIVE::G1
is SENSITIVE:G1
,G3
You should understand how dominance rules work for Oracle labels and inverse groups.
Dominance rules for Oracle Label Security with standard groups can be summarized as follows:
A user label dominates a data label if:
User level is greater than or equal to the data level
User compartments are a superset of the data compartments
User groups intersects (have at least one group from) the data groups
Dominance rules for Oracle Label Security with inverse groups can be summarized as follows:
A user label dominates a data label if:
User level is greater than or equal to the data level
User compartments are a superset of the data compartments
Data groups are a superset of user groups
See Also: