Setcap/getcap

From 탱이의 잡동사니
Revision as of 19:57, 16 June 2020 by Pchero (talk | contribs) (Created page with "== Overview == setcap/getcap 내용 정리. == capabilities == <pre> $ man capabilities </pre> Linux capabilities are special attributes in the Linux kernel that grant proces...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

setcap/getcap 내용 정리.

capabilities

$ man capabilities

Linux capabilities are special attributes in the Linux kernel that grant processes and binary executable specific privileges that are normally reserved for processes whose effective user ID is 0(The only root user has UID 0).

setcap

Set file capabilities.

$ sudo getcap /usr/bin/rcp
 /usr/bin/rcp = cap_net_bind_service+ep

getcap

Examine file capabilities.

$ getcap -v /bin/ping
/bin/ping = cap_net_raw+ep