-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from AkihiroSuda/dev
Add a hint about `[rootlesskit:parent] error: failed to start the child: fork/exec /proc/self/exe: operation not permitted`
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`). |