TMAegis
More rules for db2

TMA-DB2-6.2.4

Nested Roles

MediumLevel 1Manual reviewdb2

Description

The user-defined roles in Db2 can be nested in the same fashion as Windows security groups, i.e. a nested group has both its directly assigned permissions as well as the assigned group permissions. By nesting roles, the database administrator is saving time by only having to assign a group of users versus assigning them individually. Nesting roles properly can often ease the application of ...

How it is checked

Audit method: Manual review

This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.

1. Connect to Db2 database: db2 => connect to <dbname> 2. Run the following to identify any nested roles: db2 => select grantee, rolename from syscat.roleauth where grantee in (select rolename from syscat.roles) If value is blank, this would be considered passing.

How it is fixed

Fix method: Guidance or infrastructure patch

To remove a nested role, perform the following: 1. Connect to Db2 database: db2 => connect to <dbname> 2. Run the following: db2 => revoke role <role name> from role <role>

Properties

Operating systems
Any
Tags
db2databasemanual
Reference
CIS IBM Db2 12.1 Benchmark v1.0.0 - 6.2.4 Nested Roles