Retrieve maximum and minimum sensitivity label (SL) and integrity label (TL) from the initialized label encodings file.
Trusted AIX® Library ( libmls.a )
The getmax_sl subroutine retrieves the maximum SL that is defined in the initialized label encodings file and copies the result to the sl parameter.
The getmax_tl subroutine retrieves the maximum TL that is defined in the initialized label encodings file and copies the result to the tl parameter.
The getmin_sl subroutine retrieves the minimum SL that is defined in the initialized label encodings file and copies the result to the sl parameter.
The getmax_tl subroutine retrieves the minimum TL that is defined in the initialized label encodings file and copies the result to the tl parameter.
| Item | Description |
|---|---|
| sl | Specifies the sensitivity label to be copied to. |
| tl | Specifies the integrity label to be copied to. |
| Mode | File |
|---|---|
| r | /etc/security/enc/LabelEncodings |
If successful, these subroutines return a value of zero. Otherwise, they return a value of -1.
If these subroutines fail, they return one of the following error codes:
| Item | Description |
|---|---|
| ENIVAL | The parameter specifies a value that is null. |
| ENOTREADY | The database is not initialized. |