diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2021-02-05 17:14:59 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-05 17:17:30 -0800 |
commit | 09afd68326898f783927c65f86f813d815d8c16c (patch) | |
tree | 4cea9f27b4d37f15441aadae7c1bc5f5f5a9ec8a /pkg/bits | |
parent | 24416032ab848cff7696b3f37e4c18220aeee2c0 (diff) |
[vfs] Handle `.` and `..` as last path component names in kernfs Rename.
According to vfs.FilesystemImpl.RenameAt documentation:
- If the last path component in rp is "." or "..", and opts.Flags contains
RENAME_NOREPLACE, RenameAt returns EEXIST.
- If the last path component in rp is "." or "..", and opts.Flags does not
contain RENAME_NOREPLACE, RenameAt returns EBUSY.
Reported-by: syzbot+6189786e64fe13fe43f8@syzkaller.appspotmail.com
PiperOrigin-RevId: 355959266
Diffstat (limited to 'pkg/bits')
0 files changed, 0 insertions, 0 deletions