|
@@ -269,6 +269,13 @@ init() {
|
|
|
# - sysctl: "net.ipv4.ip_unprivileged_port_start"
|
|
|
# - external binary: slirp4netns
|
|
|
# - external binary: fuse-overlayfs
|
|
|
+
|
|
|
+ # check RootlessKit functionality. RootlessKit will print hints if something is still unsatisfied.
|
|
|
+ # (e.g., `kernel.apparmor_restrict_unprivileged_userns` constraint)
|
|
|
+ if ! rootlesskit true; then
|
|
|
+ ERROR "RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ ."
|
|
|
+ exit 1
|
|
|
+ fi
|
|
|
}
|
|
|
|
|
|
# CLI subcommand: "check"
|