aboutsummaryrefslogtreecommitdiff
path: root/io/tst-fchmod-errors.c
AgeCommit message (Collapse)AuthorFilesLines
2024-08-30io: Fix destructive nature of tst-fchmod-errorsFlorian Weimer1-3/+10
We must not change the permissions of /dev/null if running as root. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2024-08-30io: Add error tests for fchmodFlorian Weimer1-0/+56
On Linux most descriptors that do not correspond to file system entities (such as anonymous pipes and sockets) have file permissions that can be changed. While it is possible to create a custom file system that returns (say) EINVAL for an fchmod attempt, testing this does not appear to be useful. Reviewed-by: Carlos O'Donell <carlos@redhat.com>