Red Hat Bugzilla – Bug 66511
rpm ignores immutable attribute
Last modified: 2008-05-01 11:38:02 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-6.2.16-KRUD-perfctr2.3.6
Description of problem:
rpm ignores the immutable attribute of files in an ext2 filesystem,
which causes the transaction to fail. Instead, rpm should check
the immutable attribute during transaction setup. There should
be a command-line option to override [and replace] the attribute,
or to query the user interactively.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. /usr/bin/chattr +i foo # any file that will be replaced
2. rpm -Uvh foo.rpm
Actual Results: No checking in advance; rpm attempts the transaction.
Abort with EPERM; transaction failed.
Expected Results: rpm should detect the problem during transaction setup,
and either temporarily set -i, then install, then set +i;
or give a message, then query the user.
Additional info: Usually encountered during install or upgrade,
such as bug #64671, where the symptoms look like a problem in anaconda.
Yup, rpm pays no attention to immutable,
and furthermore doesn't understand RO file systems.