Fix spelling
Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com>
This commit is contained in:
parent
d69d21b036
commit
366564eaa0
|
@ -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");
|
||||
|
|
|
@ -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"
|
||||
|
|
2
utils.c
2
utils.c
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user