/
githubmirror
/
libcap-ng
Обзор
Документация
Войти
/
githubmirror
/
libcap-ng
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/capng_get_caps_fd.3
23 строки
837 B
Steve Grubb
Update documentation and fix API issue
22 мар 2026, 21:22
22 мар 2026, 21:22
2f43777
Код
Авторство
О чём код?
.TH "CAPNG_GET_CAPS_FD" "3" "March 2026" "Red Hat" "Libcap-ng API" .SH NAME capng_get_caps_fd \- read file-based capabilities from extended attributes .SH "SYNOPSIS" .B #include <cap-ng.h> .sp int capng_get_caps_fd(int fd); .SH "DESCRIPTION" 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 included in file based capabilities operations. Note that this function will only work if compiled on a kernel that supports file based capabilities such as 2.6.26 and later. If the "magic" bit is set, then all effective capability bits are set. Otherwise the bits are cleared. .SH "RETURN VALUE" This returns 0 on success and -1 on failure. .SH "SEE ALSO" .BR capng_apply_caps_fd (3), .BR capabilities (7) .SH AUTHOR Steve Grubb