Bug 553215 - [abrt] crash detected in policycoreutils-python-2.0.78-3.fc12
Summary: [abrt] crash detected in policycoreutils-python-2.0.78-3.fc12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8e6c8a2f
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-07 13:06 UTC by Davide Rondini
Modified: 2010-03-05 03:34 UTC (History)
6 users (show)

Fixed In Version: policycoreutils-2.0.79-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-05 03:34:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Davide Rondini 2010-01-07 13:06:31 UTC
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

Comment 1 hristo ivanov 2010-02-12 14:37:38 UTC
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)

Comment 2 Daniel Walsh 2010-02-12 15:02:16 UTC
What lanquage?

Also could you update to the latest policycoreutils package

yum -y update policycoreutils\*

Comment 3 hristo ivanov 2010-02-12 17:17:39 UTC
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

Comment 4 Fedora Update System 2010-02-18 15:56:54 UTC
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

Comment 5 Fedora Update System 2010-02-20 00:29:10 UTC
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

Comment 6 Jonas Jonsson 2010-02-20 15:33:04 UTC
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.

Comment 7 Daniel Walsh 2010-02-22 18:33:22 UTC
Fixed in policycoreutils-2.0.79-3.fc12

Comment 8 Fedora Update System 2010-03-05 03:33:52 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.