This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Laurent.Mazuel, altendky, eryksun, georg.brandl, masthana, serhiy.storchaka
Date 2018-11-04.16:41:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541349715.5.0.788709270274.issue26660@psf.upfronthosting.co.za>
In-reply-to
Content
> file mode and flags which can be set by os.chmod() and os.chflags() 
> by unprivileged user. 

I remembered incorrectly about chflags. It's not a single immutable flag, but several (depending on the OS). The owner or superuser can modify UF_IMMUTABLE, UF_READONLY, and UF_NOUNLINK. The SF_* flags can only be unset by the superuser in single-user mode.

> It doesn't solve problem when files was made immutable by chattr on
> Linux.

We may not have CAP_LINUX_IMMUTABLE, but we can at least try to clear the immutable flag, no?
History
Date User Action Args
2018-11-04 16:41:55eryksunsetrecipients: + eryksun, georg.brandl, Laurent.Mazuel, serhiy.storchaka, altendky, masthana
2018-11-04 16:41:55eryksunsetmessageid: <1541349715.5.0.788709270274.issue26660@psf.upfronthosting.co.za>
2018-11-04 16:41:55eryksunlinkissue26660 messages
2018-11-04 16:41:55eryksuncreate