Re: File and directory permissions
- Date: Wed, 7 Mar 2018 13:15:59 +0100
- From: tomas@xxxxxxxxxx
- Subject: Re: File and directory permissions
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Mar 07, 2018 at 01:11:52PM +0100, epsilon491@xxxxxxxxxxxx wrote:
> Tomas and Dan, thanks for the explanations. So if the process have already a handle (file descriptor) to apple, it can continue using it, even when I chmod 700 one of its parents. On the other hand, any new process trying to get a handle to apple MUST traverse the directory tree. This is what I understand. Thanks again for the explanations.
Yes, that sounds about right, perhaps with a small correction:
it doesn't have to traverse the whole path from root if it
has a handle to an intermediate directory: that's what the
system call openat() is for.
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
-----END PGP SIGNATURE-----