Re: TypeError: in method 'getpidcon', argument 1 of type 'pid_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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  <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?

Possibly we need a typemap for it in the python binding?

-- 
Stephen Smalley
National Security Agency


--
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.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux