You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Linux capabilities的技术问询:特权操作划分与多能力授权

Great questions about Linux capabilities—let’s break them down clearly:

Question 1: Do Linux capabilities cover all privileged executable operations?

Linux capabilities were built to split the monolithic root privilege into smaller, more manageable permissions, and they cover most common privileged operations you’ll encounter. However, they don’t cover every single privileged action.

The big caveat here is CAP_SYS_ADMIN, often called the "catch-all" capability. It encompasses hundreds of operations that haven’t been split into more specific, granular capabilities yet—things like certain filesystem tweaks, kernel parameter adjustments, and niche system management tasks. Additionally, very new kernel features or extremely niche operations might not have a dedicated capability defined yet, so you’d still need full root access (or CAP_SYS_ADMIN) to perform them.

Question 2: Are there operations that can be authorized via multiple different capabilities?

Absolutely—this is a common pattern, especially with the broad CAP_SYS_ADMIN acting as a superset for many granular capabilities. Here are some concrete examples:

  • Binding to privileged ports (port numbers < 1024): The standard, least-privilege way is with CAP_NET_BIND_SERVICE, but a process with CAP_SYS_ADMIN (or running as root, which has all capabilities) can also do this.
  • Modifying system time: CAP_SYS_TIME is the dedicated capability for adjusting the system clock, but CAP_SYS_ADMIN also grants this permission.
  • Mounting/unmounting filesystems: CAP_SYS_MOUNT is the specific capability for this task, but CAP_SYS_ADMIN includes this permission too.
  • Loading kernel modules: CAP_SYS_MODULE is the intended, restricted way to load modules, but CAP_SYS_ADMIN will also allow this operation.

This design balances granularity (for processes that only need one specific privilege) and convenience (for full system admin tools that need broad access).

内容的提问来源于stack exchange,提问作者dippynark

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:06:10