nerdexam
LPI

305-300 · Question #83

What is the purpose of capabilities in the context of container virtualization?

The correct answer is E. Prevent processes from performing actions which might infringe the container. Capabilities are a way of implementing fine-grained access control in Linux. They are a set of flags that define the privileges that a process can have. By default, a process inherits the capabilities of its parent, but some capabilities can be dropped or added by the process…

Containerization

Question

What is the purpose of capabilities in the context of container virtualization?

Options

  • AMap potentially dangerous system calls to an emulation layer provided by the container
  • BRestrict the disk space a container can consume.
  • CEnable memory deduplication to cache files which exist in multiple containers.
  • DAllow regular users to start containers with elevated permissions.
  • EPrevent processes from performing actions which might infringe the container.

How the community answered

(60 responses)
  • A
    3% (2)
  • B
    2% (1)
  • C
    13% (8)
  • D
    7% (4)
  • E
    75% (45)

Explanation

Capabilities are a way of implementing fine-grained access control in Linux. They are a set of flags that define the privileges that a process can have. By default, a process inherits the capabilities of its parent, but some capabilities can be dropped or added by the process itself or by the kernel. In the context of container virtualization, capabilities are used to prevent processes from performing actions that might infringe the container, such as accessing the host's devices, mounting filesystems, changing the system time, or killing other processes. Capabilities allow containers to run with a reduced set of privileges, enhancing the security and isolation of the container environment. For example, Docker uses a default set of capabilities that are granted to the processes running inside a container, and allows users to add or drop capabilities as needed.

Topics

#Linux capabilities#container security#privilege management#process permissions

Community Discussion

No community discussion yet for this question.

Full 305-300 Practice