Fix spelling

Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com>
This commit is contained in:
a1346054 2021-09-12 20:10:24 +00:00 committed by Alexander Larsson
parent d69d21b036
commit 366564eaa0
3 changed files with 3 additions and 3 deletions

View File

@ -2539,7 +2539,7 @@ main (int argc,
* because (as described in acquire_privs()) setuid bwrap causes
* root to own the namespaces that it creates, so you will not be
* able to access these namespaces anyway. So, best just not support
* it anway.
* it anyway.
*/
if (opt_userns_fd != -1 && is_privileged)
die ("--userns doesn't work in setuid mode");

View File

@ -108,7 +108,7 @@ if test -n "${bwrap_is_suid:-}"; then
else
BWRAP_RECURSE="$BWRAP --unshare-user --uid 0 --gid 0 --cap-add ALL --bind / / --bind /proc /proc"
# $BWRAP May be inaccessable due to the user namespace so use /proc/self/exe
# $BWRAP May be inaccessible due to the user namespace so use /proc/self/exe
$BWRAP_RECURSE -- /proc/self/exe --unshare-all --bind / / --bind /proc /proc echo hello > recursive_proc.txt
assert_file_has_content recursive_proc.txt "hello"
echo "ok - can mount /proc recursively"

View File

@ -779,7 +779,7 @@ read_pid_from_socket (int socket)
msg.msg_controllen = control_len_rcv;
if (recvmsg (socket, &msg, 0) < 0)
die_with_error ("Cant read pid from socket");
die_with_error ("Can't read pid from socket");
if (msg.msg_controllen <= 0)
die ("Unexpected short read from pid socket");