Skip to contentSkip to conversation

swig wrapper bug: setexeccon

DISCUSSION Christopher J. PeBenito 2 participants 2 messages May 5, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

Having a problem with the swig wrapper:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

import selinux
selinux.setexeccon('user_u:system_r:java_t')

Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: argument number 1: a 'security_context_t *' is expected, 'str(user_u:system_r:java_t)' is received

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 7 lines · Christopher J. PeBenito

Having a problem with the swig wrapper:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

import selinux
selinux.setexeccon('user_u:system_r:java_t')

Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: argument number 1: a 'security_context_t *' is expected, 'str(user_u:system_r:java_t)' is received

Glauber posted some patches for the libselinux swig wrappers that haven't been merged upstream yet, but are in rawhide IIUC.

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.