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
Steps to Reproduce:
1. sudo semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
2. echo $?
Crash; policy unchanged.
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