capability.h

Overview

Related Modules:

PROCESS

Description:

Provides functions and related data structures for obtaining and setting process capabilities.

Since:

1.0

Version:

1.0

Summary

Functions

Function Name Description
capget (cap_user_header_t hdr_ptr, cap_user_data_t data_ptr) int Obtains the capability information of a specified process based on the input parameters (compatible with the Linux API format).
capset (cap_user_header_t hdr_ptr, const cap_user_data_t data_ptr) int Sets the capability information for a specified process based on the input parameters (compatible with the Linux API format).
ohos_capget (unsigned int *caps) int Obtains the capability information of a specified process based on the input parameters.
ohos_capset (unsigned int caps) int Sets the capability information of a specified process based on the input parameters.