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 <type 'int'> Traceback (most recent call last): File "test.py", line 8, in <module> (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? -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.