Description of problem: When I update the strict policy I get the following error messages from rpm: libsepol.scope_copy_callback: authlogin: Duplicate declaration in module: type/attribute system_chkpwd_t libsemanage.semanage_link_sandbox: Link packages failed semodule: Failed! Version-Release number of selected component (if applicable): At least 2.2.29-3.fc5 and 2.2.34-3.fc5 have this problem. How reproducible: 100%. I tried removing the package (as I am running in targetted on one machine and mls on another, so this doesn't cause a problem) and reinstalling it and get the same message. Steps to Reproduce: 1. Use rpm to update or install selinux-policy-strict 2. 3. Actual results: The above error message appears. Expected results: No error message. Additional info:
Fixed in selinux-policy-strict-2.2.36-2.fc5
Closing as these have been marked as modified, for a while. Feel free to reopen if not fixed
When I just upgraded to 2.2.36-2.fc5 I got a similar, though not identical problem. While doing the selinux-policy-strict part of the transaction I got this message: libsepol.scope_copy_callback: authlogin: Duplicate declaration in module: type/attribute system_chkpwd_t libsemanage.semanage_link_sandbox: Link packages failed semodule: Failed! Then while doing wrap up stuff for the whole transaction I got the following message:libsepol.scope_copy_callback: authlogin: Duplicate declaration in module: type/attribute system_chkpwd_t libsemanage.semanage_link_sandbox: Link packages failed semodule: Failed! error: %trigger(selinux-policy-strict-2.2.36-2.fc5.noarch) scriptlet failed, exit status 1
Fixed in selinux-policy-strict-2.2.38-1.fc5
I just updated to 2.2.38-1.fc5 on one of my machines and am still seeing essentially the same problem. Here is the rpm output: [root@bruno bruno]# rpm -Fvh selinux-policy* Preparing... ########################################### [100%] 1:selinux-policy ########################################### [ 25%] 2:selinux-policy-mls ########################################### [ 50%] /sbin/restorecon reset /usr/local/etc/dnscache/log/main/current context system_u:object_r:etc_runtime_t:SystemLow->system_u:object_r:etc_t:SystemLow /sbin/restorecon reset /usr/local/etc/dnscache/log/main/@400000004461f6730332daf4.s context system_u:object_r:etc_runtime_t:SystemLow->system_u:object_r:etc_t:SystemLow 3:selinux-policy-strict ########################################### [ 75%] libsepol.scope_copy_callback: authlogin: Duplicate declaration in module: type/attribute system_chkpwd_t libsemanage.semanage_link_sandbox: Link packages failed semodule: Failed! 4:selinux-policy-targeted########################################### [100%] libsemanage.semanage_direct_remove: Module dpkg was not found. semodule: Failed on dpkg! error: %trigger(selinux-policy-strict-2.2.36-2.fc5.noarch) scriptlet failed, exit status 1 libsemanage.semanage_direct_remove: Module dpkg was not found. semodule: Failed on dpkg! error: %trigger(selinux-policy-strict-2.2.38-1.fc5.noarch) scriptlet failed, exit status 1
Dan's comments in an email on fedora-test-list help me solve this. selinux-policy-strict-2.2.34-3.fc5 was still showing up in the rpm database even though selinux-policy-strict-2.2.36-2.fc5 was also installed. I needed to erase it twice to get rid of it there. I also removed /usr/share/selinux/strict /etc/selinux/strict as suggested in the email. Then when I reinstalled selinux-policy-strict-2.2.38-1.fc5 I didn't see that problem.