abrt 1.0.0 detected a crash. How to reproduce ----- 1. chcon -R -t virt_image_t /home/davide/VirtualMachines/ 2. semanage fcontext -a -t virt_image_t /home/davide/VirtualMachines/ Comment ----- I was setting a SELinux context to be able to run virtual machines in a user's directory. Set correctly the chcon, but crashed on semanage (run as user). The error reported was: /usr/sbin/semanage: Traceback (most recent call last): File "/usr/sbin/semanage", line 547, in <module> errorExit(error.args[0]) File "/usr/sbin/semanage", line 112, in errorExit sys.stderr.write("%s\n" % error) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 22: ordinal not in range(128) After the command, the image of virtual machine has become owned by root user and group. $ ls -lZ -rw-r--r--. root root system_u:object_r:virt_image_t:s0 windows.img cmdline: /usr/bin/python -E /usr/sbin/semanage fcontext -a -t virt_image_t /home/davide/VirtualMachines/ component: policycoreutils executable: /usr/sbin/semanage kernel: 2.6.31.9-174.fc12.x86_64 package: policycoreutils-python-2.0.78-3.fc12 uuid: 8e6c8a2f
me too: [root@gadnio ~]# semanage fcontext -d -e /var/lib /data /usr/sbin/semanage: Traceback (most recent call last): File "/usr/sbin/semanage", line 547, in <module> errorExit(error.args[0]) File "/usr/sbin/semanage", line 112, in errorExit sys.stderr.write("%s\n" % error) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
What lanquage? Also could you update to the latest policycoreutils package yum -y update policycoreutils\*
Daniel: $LANG="bg_BG.UTF-8" [gadnio@gadnio ~]$ rpm -qa |grep policycoreutils policycoreutils-gui-2.0.78-12.fc12.x86_64 policycoreutils-python-2.0.78-12.fc12.x86_64 policycoreutils-2.0.78-12.fc12.x86_64
policycoreutils-2.0.79-2.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/policycoreutils-2.0.79-2.fc13
policycoreutils-2.0.79-2.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update policycoreutils'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F13/FEDORA-2010-1730
I have the same problem with LANG="sv_SE.UTF-8" and policycoreutils-python-2.0.78-19.fc12.x86_64. $ semanage fcontext -a -t textrel_shlib_t '/usr/local/lib/personal/libplugins.so' /usr/sbin/semanage: Traceback (most recent call last): File "/usr/sbin/semanage", line 547, in <module> errorExit(error.args[0]) File "/usr/sbin/semanage", line 112, in errorExit sys.stderr.write("%s\n" % error) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 15: ordinal not in range(128) $ LANG="C" semanage fcontext -a -t textrel_shlib_t '/usr/local/lib/personal/libplugins.so' /usr/sbin/semanage: SELinux policy is not managed or store cannot be accessed.
Fixed in policycoreutils-2.0.79-3.fc12
policycoreutils-2.0.79-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.