Description of problem: For the past few weeks, my swap has not been activating when booting. I checked the log files, and found the following error: SELinux: initialized (dev dm-1, type ext3), uses xattr audit(1188719417.651:4): avc: denied { execute } for pid=1702 comm="swapon" name="mkswap" dev=dm-2 ino=459103 scontext=system_u:system_r:fsadm_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file Version-Release number of selected component (if applicable): How reproducible: Every reboot. Steps to Reproduce: I am not sure what initially caused this to start happening. Once it does happen, only one thing is need to make it happen again. 1. reboot 2. examine /var/log/dmesg 3. Actual results: Boot appears to proceed normally, but after logging in I find my swap partition has not been activated. Manually running "sudo swapon -a" works normally. Expected results: Swap should be activated at boot without an SELinux error. Additional info:
After further examination, I think this problem is related to the fact swapon will automatically call mkswap if the swap device contains hibernate information. In other words a policy is needed for swapon to allow it to call mkswap so swap can be loaded after a failed hibernate restore. Bill
Fixed in selinux-policy-2.6.4-41.fc7.src.rpm
Bulk closing all bugs in Fedora updates in the modified state. If you bug is not fixed, please reopen.