Thread (4 messages) 4 messages, 4 authors, 2021-03-11

RE: [PATCH v2 1/1] fs: Allow no_new_privs tasks to call chroot(2)

From: David Laight <hidden>
Date: 2021-03-11 09:46:31
Also in: linux-fsdevel, lkml

Possibly related (same subject, not in this thread)

From: Eric W. Biederman
Sent: 10 March 2021 19:24
...
The actual classic chroot escape is.
chdir("/");
chroot("/somedir");
chdir("../../../..");
That one is easily checked.

I thought something like:
chroot("/somedir");
chdir("/somepath");

Friendly process:
mvdir("/somedir/some_path", "/bar");

was the actual escape?

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help