This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the capsh approach doesn't work on RHEL as the version of libcap is not updated and doesn't know all the possible capabilities available on the system. This is the output I get with getpcaps on RHELAH 7.4.2: Capabilities for `1': = cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_linux_immutable,cap_net_bind_service,cap_net_broadcast,cap_net_admin,cap_net_raw,cap_ipc_lock,cap_ipc_owner,cap_sys_module,cap_sys_rawio,cap_sys_chroot,cap_sys_ptrace,cap_sys_pacct,cap_sys_admin,cap_sys_boot,cap_sys_nice,cap_sys_resource,cap_sys_time,cap_sys_tty_config,cap_mknod,cap_lease,cap_audit_write,cap_audit_control,cap_setfcap,cap_mac_override,cap_mac_admin,cap_syslog,35,36+ep Fallback to the capsh method if there will be more capabilities that we know of, and hopefully libcap does. Signed-off-by: Giuseppe Scrivano <[email protected]> Closes: #1130 Approved by: rhatdan
- Loading branch information