Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Each dispatch function must now explicitly call for the types of fids it allows (or rejects). This lets us make sure insane clients will not send xattr fids into walk and mkdir operations, for instance, which would confuse the back-end code. (This also fixes existing issues with broken clients doing things like using Twalk on an open directory, which can leak open file descriptors. The protocol prohibits this but the existing backend code never checks.) This has no effect on any well-behaved client, since the backend has no extattr code yet, but it is needed to enable the backend to work with attribute fids, which need special action on clunk. Rather than making the backend check, we provide separate xattr read, write, and clunk here.
- Loading branch information