The libcap-ng-devel package contains the files needed for developing
applications that need to use the libcap-ng library.
capng_apply capng_apply will transfer the specified internal posix capabilities settings to the kernel. The options are CAPNG_SELECT_CAPS for the traditional capabilities... capng_capability_to_name capng_capabilityi_to_name will take the integer being passed and look it up to see what its text string representation would be. The integer being input must be... capng_change_id This function will change uid and gid to the ones given while retaining the capabilities previously specified in capng_update. It is not necessary and perhaps... capng_clear capng_clear sets to 0 all bits in the selected posix capabilities set. The options are CAPNG_SELECT_CAPS for the traditional capabilities, CAPNG_SELECT_BOUNDS... capng_fill capng_fill sets all bits to a 1 in the selected posix capabilities set. The options are CAPNG_SELECT_CAPS for the traditional capabilities, CAPNG_SELECT_BOUNDS... capng_get_caps_fd This function will read the file based capabilities stored in extended attributes of the file that the descriptor was opened against. The bounding set is not... capng_get_caps_process capng_get_caps_process will get the capabilities and bounding set of the pid stored inside libcap-ng's state table. The default is the pid of the running... capng_have_capabilities capng_have_capabilities will check the selected internal capabilities sets to see what the status is. The capabilities sets must be previously setup with calls... capng_have_capability capng_have_capability will check the specified internal capabilities set to see if the specified capability is set. The capabilities sets must be previously... capng_lock capng_lock will take steps to prevent children of the current process to regain full privileges if the uid is 0. This should be called while possessing the... capng_name_to_capability capng_name_to_capability will take the string being passed and look it up to see what its integer value would be. The string being input is the same name as the... capng_print_caps_numeric capng_print_caps_numeric will create a numeric representation of the internal capabilities. The representation can be sent to either stdout or a buffer by... capng_print_caps_text capng_print_caps_text will create a text string representation of the internal capability set specified. The representation can be sent to either stdout or a... capng_restore_state capng_restore_state is a function that takes the state information previously saved by capng_save_state and restores the libraries internal state. This function... capng_save_state capng_save_state is a function that returns a pointer to the internal state of the libcap-ng library. It should be considered opaque and not for alteration... capng_set_caps_fd This function will write the file based capabilities to the extended attributes of the file that the descriptor was opened against. The bounding set is not... capng_setpid capng_pid sets the working pid for capabilities operations. This is useful if you want to get the capabilities of a different process. capng_update capng_update will update the internal posix capabilities settings based on the options passed to it. The action should be eith CAPNG_DROP to set the capability... capng_updatev capng_updatev will update the internal posix capabilities settings based on the options passed to it. The action should be eith CAPNG_DROP to set the capability...