Message329236
> 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? |
|
Date |
User |
Action |
Args |
2018-11-04 16:41:55 | eryksun | set | recipients:
+ eryksun, georg.brandl, Laurent.Mazuel, serhiy.storchaka, altendky, masthana |
2018-11-04 16:41:55 | eryksun | set | messageid: <1541349715.5.0.788709270274.issue26660@psf.upfronthosting.co.za> |
2018-11-04 16:41:55 | eryksun | link | issue26660 messages |
2018-11-04 16:41:55 | eryksun | create | |
|