-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephen Smalley wrote: > On Mon, 2008-01-07 at 10:08 -0600, Xavier Toth wrote: >> import selinux >> import os >> >> pid = os.getpid() >> print "Type of pid ", type(pid) >> (ret,con) = selinux.getpidcon(pid) >> type = con.split(":", 4) >> print type >> >> Running this script results in: >> >> Type of pid >> Traceback (most recent call last): >> File "test.py", line 8, in >> (ret,con) = selinux.getpidcon(pid) >> TypeError: in method 'getpidcon', argument 1 of type 'pid_t' >> >> How do I make a pid_t in python? Or is the swig broke? > > Possibly we need a typemap for it in the python binding? > Patch to add pid_t typemap -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkeDTVMACgkQrlYvE4MpobORcACfbLHVkf3ba56F48yntS4CShJS EVAAnAgl6kOIho5X51a20vUYefsOlSP9 =5RRK -----END PGP SIGNATURE-----