Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 276121 - python bindings for rpm_execcon not correct
python bindings for rpm_execcon not correct
Product: Fedora
Classification: Fedora
Component: libselinux (Show other bugs)
All All
medium Severity low
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
Depends On:
Blocks: F8Blocker 338601
  Show dependency treegraph
Reported: 2007-09-04 09:28 EDT by Thomas Woerner
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-18 15:08:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Thomas Woerner 2007-09-04 09:28:06 EDT
Description of problem:
The python bindings for rpm_execcon not correct:


import selinux
args = [ "/bin/bash", "--version" ]
selinux.rpm_execcon(0, args[0], args, [ ])


Traceback (most recent call last):
  File "test.py", line 5, in <module>
    selinux.rpm_execcon(0, args[0], args, [ ])
TypeError: in method 'rpm_execcon', argument 3 of type 'char *const []'

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Use test case
Actual results:
TypeError: in method 'rpm_execcon', argument 3 of type 'char *const []'

Expected results:
bash version

Additional info:
Comment 1 Thomas Woerner 2007-09-04 11:17:20 EDT
This is also a problem in FC-6:libselinux-1.33.4-2.fc6 and
Comment 2 Daniel Walsh 2007-09-06 08:38:39 EDT
Fixed in libselinux-2_0_31-4_fc8

Is this important enough to back port?
Comment 3 Thomas Woerner 2007-09-07 05:29:16 EDT
Yes, I think this is important enough.

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