Sets the order of domains for certain security databases.
Standard C Library (libc.a)
The setsecorder subroutine sets the value of the domain order to the value parameter for the name database. The new domain order overrides the setting from any previous setsecorder call, and the setting specified in the /etc/sncontrol.conf file. A null value pointer or a null value resets the setting made by a previous setsecorder call, forcing the concerned library subroutines to follow the value defined in /etc/sncontrol.conf file.
Item | Description |
---|---|
name | Specifies the database name whose domain order
is to be set. Valid values and the affected library subroutines are
as follows:
|
value | Specifies a comma-separated list of modules.
The following values are valid:
|
Item | Description |
---|---|
0 | The domain order has been set successfully. |
-1 | The domain order cannot be set. The errno variable is set to indicate the failure. |
The setsecorder subroutine fails if one of the following codes is true.
Item | Description |
---|---|
EINVAL | The name parameter refers to an unsupported database. |
EINVAL | The value parameter contains module names that do not refer to a valid stanza in the /usr/lib/security/methods.cfg file or one of the predefined values. |
ENOMEM | Unable to allocate memory. |