Friday, June 29. 2007

selinux warning: "Multiple same specifications for ..."

On my machine running Fedora 7, I saw message like

  Multiple same specifications for /usr/local/lost\+found/.*.

for some files or directories, especially when doing an yum update or running rpm. I checked the file_contexts file, but I could not find any duplicates.

The solutions was some stale file_contexts.pre file in the same directory, which was a copy of file_contexts with some modifications. After deleting the file_contexts.pre file, the messages disappeared.

I'm still wondering, where this file_contexts.pre file came from, as it did not belong to any package.