Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-01-16.14:25:34.618>labels= ['library', '3.9', '3.10']
title="Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags()"updated_at=<Date2021-01-30.20:50:43.418>user='https://github.com/socketpair'
bpo-39533 is a related issue that seeks to support the Linux statx() system call. A statx record includes an stx_attributes field, which supports the following file attributes that can be set with chattr:
Activity
socketpair commented on Jan 16, 2021
https://man7.org/linux/man-pages/man2/ioctl_iflags.2.html
Seems the ioctl is only way to implement chattr(). I propose to add all these flags to os.chflags() and to gain its support in Linux.
eryksun commented on Jan 30, 2021
bpo-39533 is a related issue that seeks to support the Linux statx() system call. A statx record includes an stx_attributes field, which supports the following file attributes that can be set with chattr:
and the following read-only file attributes that can be listed with lsattr:
encukou commented on Aug 25, 2026
This is a duplicate of #75494.