lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 12 Aug 2007 22:55:56 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...putergmbh.de>
To:	Al Viro <viro@....linux.org.uk>
cc:	Mark Cannon <random.bits@...ers.com>,
	"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org
Subject: Re: Use of directories to hold root?


On Aug 12 2007 21:23, Al Viro wrote:
>> 
>> pivot_root is atomic afaict, for `mount --move` (which I think Al meant 
>> which MS_MOVE - or some C program using mount(2) of your own), you'd 
>> need multiple calls to mount.
>
>Move itself is done by a single syscall anyway...
>
Yes, but you need needed 2 mounts, 1 chdir and one chroot. Plus, you 
have not freed the data in the rootfs. (Well, neither does 
pivot_root, but run-init from klibc will.)


	Jan
-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ