[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patches to move sys_getfh to vfs_syscalls.c?



Theo de Raadt <deraadt@cvs.openbsd.org> writes:
> > b) introduces the new system calls fhopen, fhstat, fhstatfs that are
> > like open but with a file handle instead of a file name.
> 
> What permission checking happens on these?

They're root-only.

> I'm not getting a good description of WHY this needs to happen.

They're useful for:

- partly-userspace implementations of file systems such as Arla (xfs
  already has its own implementation) or Coda
- news-server and
  potentially web proxies such as squid

to avoid doing name-lookups.

/assar