All of lore.kernel.org
 help / color / mirror / Atom feed
* TypeError: in method 'getpidcon', argument 1 of type 'pid_t'
@ 2008-01-07 16:08 Xavier Toth
  2008-01-07 20:08 ` Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Toth @ 2008-01-07 16:08 UTC (permalink / raw)
  To: SE Linux

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@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-08 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-07 16:08 TypeError: in method 'getpidcon', argument 1 of type 'pid_t' Xavier Toth
2008-01-07 20:08 ` Stephen Smalley
2008-01-08 10:15   ` Daniel J Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.