Description of problem: The example of adding a file context to the policy taken from the semanage man page segfaults. Version-Release number of selected component (if applicable): setools.x86_64 3.1-4.fc7 fedora How reproducible: Steps to Reproduce: 1. sudo semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?" Segmentation fault 2. echo $? 139 Actual results: Crash; policy unchanged. Expected results: Policy changed. Additional info:
Created attachment 157682 [details] Backtraces of crashed semanage This happens on x86_64 system, but not on 32 bit systems. It happens on every try of modyfying policy (adding user, port, file context...). I am attaching a file with backtraces, although I'm not sure if they are useful. The interesting thing is, that there is always something resembling null pointer (con, fcontext, handle...) I'm using targeted policy.
Fixed in libsemanage-2.0.3-4.fc7