We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--user
1 parent 9fe775b commit 3ad3814Copy full SHA for 3ad3814
useful-tools/hooks/fix-namespaces.hook
@@ -41,17 +41,14 @@ DO_NOT_ASK="Do you wish to not see this message again about unprivileged user-na
41
42
# do not bother if unshare or /bin/true are missing
43
_sanity_check() {
44
- if command -v unshare && command -v /bin/true; then
+ if command -v /bin/true && unshare --help | grep -q -- '--user'; then
45
return 0
46
fi
47
return 1
48
}
49
50
_check_usernamespaces_work() {
51
- if unshare --help | grep -q -- '--user'; then
52
- unshare --user -p /bin/true && return 0
53
- fi
54
- return 1
+ unshare --user -p /bin/true
55
56
57
_is_apparmor() {
0 commit comments