Quote:
Originally Posted by unSpawn
Your 'wc -l' shows its got legible entries which is good. Files in /var/lib/rpm should have TE (system_u object_r) rpm_var_lib_t. Try 'chcon -R rpm_var_lib_t /var/lib/rpm/*', then try any rpm ops again?
|
Well, it looks like the chcon isn't working. I get this when I try that command:
chcon: invalid context: rpm_var_lib_t
UPDATE:
I noticed that the '.' directory entry has the rpm_var_lib_t, so I tried a 'chcon --reference=. *' from inside the /usr/lib/rpm directory, and now I have this:
drwxr-xr-x root root system_u:object_r:rpm_var_lib_t:s0 .
drwxr-xr-x root root system_u:object_r:var_lib_t:s0 ..
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Basenames
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Conflictname
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Dirnames
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Filedigests
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Filemd5s
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Group
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Installtid
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Name
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Packages
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Providename
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Provideversion
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Pubkeys
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Requirename
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Requireversion
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Sha1header
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Sigmd5
-rw-r--r-- rpm rpm system_u:object_r:rpm_var_lib_t:s0 Triggername
(hopefully that :s0 isn't a problem)
And 'rpm --qa' and 'rpm --rebuilddb' still don't do anything.