Eryk Sun <eryk...@gmail.com> added the comment:
> 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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue26660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com