Process credentials and Linux capability sets
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Treat the worksheet as offline evidence. Before any separately authorized server query, verify the effective endpoint and its trust boundary, including context overrides. Do not change runtime state, mount host data or modify Desktop settings in this exercise.
Fictional policy review (not /proc output):App UID: 10001Required privileged operations: noneEffective capabilities: emptyPermitted capabilities: emptyBounding set: emptyNo-new-privileges: enabledSeccomp / filesystem policy: separate controlsEffective capabilities are used for capability checks; permitted capabilities constrain which capabilities may be made effective. The inheritable set participates in exec-time transitions, ambient capabilities can survive execution of suitable nonprivileged programs, and the bounding set limits capability acquisition through file permitted capabilities at exec. Exact transitions depend on credentials, file attributes and kernel rules. An empty effective set is useful evidence but does not prove that a process can never acquire more privilege. No-new-privileges constrains privilege gain through exec; it does not revoke privileges already held. UID, filesystem permissions, user namespace mapping, seccomp and mandatory access controls are complementary. This policy review does not modify any capabilities. Record the identity and user namespace of the actual workload when evaluating capability evidence. A bounding set alone is not a complete description of exec-time transitions; an empty effective set cannot establish a full sandbox.
Common mistake
A nonroot UID alone is not proof of an empty capability set or a safe application.
Manual practice
Explain effective versus permitted capabilities and list three independent controls to verify in the fictional policy.
Worksheet: lab-fixtures/docker-container-internals/03-capabilities/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Process credentials and Linux capability sets — Knowledge check
Interpret synthetic runtime and isolation evidence and explain kernel and OCI boundaries.
Which set is used in capability checks?
Does no-new-privileges remove capabilities already held?
What must be checked alongside capabilities?