Details
Details
- Reviewers
cem oshogbo allanjude - Commits
- rS323623: rename(2): document capability mode errors
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Hrm, although the ENOTCAPABLE errors should really be augmented with "... and the process is in capability mode."
Comment Actions
AT_FDCWD is never allowed in capability mode. You have to be explicitly granted rights to any FD
Comment Actions
If AT_FDCWD were permitted in capability mode, that would provide an implicit capability for the current working directory. It is desirable to be able to create sandboxes that don't have access to any directories (even the current working directory), and it's also not clear what rights should be associated with AT_FDCWD, so the clearest thing is to disallow AT_FDCWD. If a process in capability mode requires access to the current working directory, it can be passed in as an explicit capability.