Skip to content

Commit

Permalink
Merge pull request #65 from AkihiroSuda/dev
Browse files Browse the repository at this point in the history
Add a hint about `[rootlesskit:parent] error: failed to start the child: fork/exec /proc/self/exe: operation not permitted`
  • Loading branch information
AkihiroSuda authored Jun 6, 2024
2 parents f29e200 + 07e1182 commit 9707904
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/getting-started/common/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ may need the root for the initial set-up.
- [/etc/subuid and /etc/subgid](./subuid)
- [[Optional] cgroup v2](./cgroup2)
- [[Optional] Configuring sysctl values](./sysctl)
- [[Optional] Configuring AppArmor (Ubuntu 24.04 or later)](./apparmor)
32 changes: 32 additions & 0 deletions content/getting-started/common/apparmor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "[Optional] AppArmor"
weight: 60
---

{{< hint info >}}
**Note**

Configuring AppArmor is needed only on Ubuntu 24.04 or later,
with RootlessKit installed under a non-standard path.
{{< /hint>}}

If you face an error like `[rootlesskit:parent] error: failed to start the child: fork/exec /proc/self/exe: operation not permitted`,
try running the following commands:
```bash
cat <<EOT | sudo tee "/etc/apparmor.d/usr.local.bin.rootlesskit"
abi <abi/4.0>,
include <tunables/global>
/usr/local/bin/rootlesskit flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/usr.local.bin.rootlesskit>
}
EOT
sudo systemctl restart apparmor.service
```

The `/usr/local/bin/rootlesskit` string should be changed to the actual path of `rootlesskit`.

This step is *not* needed when `rootlesskit` is installed in the standard path (`/usr/bin/rootlesskit`).

0 comments on commit 9707904

Please sign in to comment.