Bug 678167

Summary: [abrt] policycoreutils-gui-2.0.83-28.fc14: polgen.py:1056:write_te:IOError: [Errno 2] No such file or directory: '/home/magrasjc//usr/bin/skyp.te'
Product: [Fedora] Fedora Reporter: JeanClaude Magras <jeanclaude.magras>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:6d50d97d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-17 21:29:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description JeanClaude Magras 2011-02-16 23:32:41 UTC
abrt version: 1.1.13
architecture: i686
cmdline: /usr/bin/python -Es /usr/bin/selinux-polgengui
component: policycoreutils
executable: /usr/bin/selinux-polgengui
kernel: 2.6.35.6-45.fc14.i686
package: policycoreutils-gui-2.0.83-28.fc14
reason: polgen.py:1056:write_te:IOError: [Errno 2] No such file or directory: '/home/magrasjc//usr/bin/skyp.te'
release: Fedora release 14 (Laughlin)
time: 1297899346
uid: 500

backtrace
-----
polgen.py:1056:write_te:IOError: [Errno 2] No such file or directory: '/home/xxxxxx//usr/bin/skyp.te'

Traceback (most recent call last):
  File "/usr/bin/selinux-polgengui", line 279, in forward
    self.generate_policy()
  File "/usr/bin/selinux-polgengui", line 423, in generate_policy
    self.info(my_policy.generate(outputdir))
  File "/usr/share/system-config-selinux/polgen.py", line 1124, in generate
    out += "%-25s %s\n" % (_("Type Enforcement file"), self.write_te(out_dir))
  File "/usr/share/system-config-selinux/polgen.py", line 1056, in write_te
    fd = open(tefile, "w")
IOError: [Errno 2] No such file or directory: '/home/xxxxxx//usr/bin/skyp.te'

Local variables in innermost frame:
tefile: '/home/xxxxxx//usr/bin/skyp.te'
self: <polgen.policy instance at 0x9d02fec>
out_dir: '/home/xxxxxxx'

How to reproduce
-----
1. I was trying to generate a policy for skype
2. I entered "/usr/bin/skype" as the name of the executable
3. selected tcp+udp ports above 1024 and connect to tcp ports 443

Comment 1 JeanClaude Magras 2011-02-16 23:32:44 UTC
Created attachment 479234 [details]
File: backtrace

Comment 2 Daniel Walsh 2011-02-17 21:29:51 UTC
Can you yum update to policycoreutils-2.0.83-33.12.fc14.x86_64

I tried to do what you did with this package and got an error message telling me that the path did not exist, in the gui