Ticket #4155 (closed defect: fixed)
Null file permissions are not preserved on copying / moving between different filesystems
Reported by: | birdie | Owned by: | andrew_b |
---|---|---|---|
Priority: | major | Milestone: | 4.8.26 |
Component: | mc-core | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: | committed-master |
Description
I'm running mc-4.8.25-3.fc33.x86_64.rpm and I've noticed quite a nasty bug:
I've just copied /etc/shadow to a new location at the same file system and the permissions have changed from 000 to 644 which is a critical security bug. The preserve attributes checkbox is enabled:
[x] Preserve attributes
The application is running under root.
If either of user/group/other read/write bits are on, permissions are preserved.
The bug is also reproducible when moving a file to a different filesystem.
Change History
comment:1 Changed 4 years ago by andrew_b
- Priority changed from blocker to major
- Milestone changed from 4.8.26 to Future Releases
comment:2 Changed 4 years ago by andrew_b
- Owner set to andrew_b
- Status changed from new to accepted
- Branch state changed from no branch to on review
- Milestone changed from Future Releases to 4.8.26
Branch: 4155_copy_preserve_0000_mode
changeset:c71df6f7c8576dc037d8c1758c80530016e3bcc2
comment:3 Changed 4 years ago by andrew_b
- Votes for changeset set to andrew_b
- Version changed from 4.8.25 to master
- Branch state changed from on review to approved
comment:4 Changed 4 years ago by andrew_b
- Status changed from accepted to testing
- Votes for changeset changed from andrew_b to committed-master
- Resolution set to fixed
- Branch state changed from approved to merged
Merged to master: [61bf152181fb04e5e2930bc7bfdaecbcba72655c].