You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux's chattr i.e. ioctl(FS_IOC_SETFLAGS) is not supported in os.chflags() #87105
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 commentedon 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 commentedon 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 commentedon Aug 25, 2026
This is a duplicate of #75494.