Bug 188106 - matchpathcon not usable from Python
matchpathcon not usable from Python
Product: Fedora
Classification: Fedora
Component: libselinux (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2006-04-05 22:42 EDT by Miloslav Trmač
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-11 14:26:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Typedef mode_t as unsigned (390 bytes, patch)
2006-04-05 22:42 EDT, Miloslav Trmač
no flags Details | Diff

  None (edit)
Description Miloslav Trmač 2006-04-05 22:42:58 EDT
$ python
Python 2.4.2 (#1, Feb 12 2006, 03:59:46)
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import selinux
>>> selinux.matchpathcon('/', 0)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: argument number 2: a 'mode_t *' is expected, 'int(0)' is received

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

My knowledge of swig is minimal, but the attached patch seems to fix it.
Comment 1 Miloslav Trmač 2006-04-05 22:42:58 EDT
Created attachment 127386 [details]
Typedef mode_t as unsigned
Comment 2 Daniel Walsh 2006-04-11 14:26:47 EDT
Fixed in rawhide - libselinux-1.30.1-1

Is this something worth backporting to FC5, or should I just wait until
something more important comes up?
Comment 3 Miloslav Trmač 2006-04-11 16:43:15 EDT

I don't need it urgently, but as my main workstation has FC5 installed, it would
be nice to get a fix in FC5 sometime.

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