Skip to contentSkip to conversation

avc_* functions not in libselinux-python

DISCUSSION Xavier Toth 2 participants 6 messages Apr 8, 2008 – Jun 10, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

Can these functions get swig'd and their wrappers built into _selinux.so?

--
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 1 line · Xavier Toth

Can these functions get swig'd and their wrappers built into _selinux.so?

Patches accepted.

One possible issue here is function pointer callbacks, which is a more general problem than just the avc interfaces in libselinux. But if you are ok with the default callbacks, I suppose there is no problem there.

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.
#2 lore raw

For now I don't think that's a problem as I was looking at using avc_has_perm and the context to sid conversion function.

Quoted 6 lines · Stephen Smalley
Quoted 1 line · Xavier Toth

Can these functions get swig'd and their wrappers built into _selinux.so?

Patches accepted.

Quoted 9 lines

One possible issue here is function pointer callbacks, which is a more general problem than just the avc interfaces in libselinux. But if you are ok with the default callbacks, I suppose there is no problem there.

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

#3 lore raw
Quoted 2 lines · Xavier Toth

For now I don't think that's a problem as I was looking at using avc_has_perm and the context to sid conversion function.

What's the status on this? I see patches in the Fedora libselinux package to add the AVC interfaces to the swig bindings, but they aren't upstream. Do they work as expected? Should they be upstreamed?

Quoted 22 lines · Stephen Smalley
Quoted 6 lines · Xavier Toth
Quoted 1 line

Can these functions get swig'd and their wrappers built into _selinux.so?

Patches accepted.

Quoted 9 lines

One possible issue here is function pointer callbacks, which is a more general problem than just the avc interfaces in libselinux. But if you are ok with the default callbacks, I suppose there is no problem there.

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

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.
author
#4 lore raw
Quoted 9 lines · Stephen Smalley
Quoted 3 lines · Xavier Toth

For now I don't think that's a problem as I was looking at using avc_has_perm and the context to sid conversion function.

What's the status on this? I see patches in the Fedora libselinux package to add the AVC interfaces to the swig bindings, but they aren't upstream. Do they work as expected?

The interfaces I'm using (avc_open, avc_reset, avc_context_to_sid, avc_has_perm_noaudit) are working as expected.

Quoted 3 lines

Should they be upstreamed?

I think so.

Quoted 17 lines
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Xavier Toth
Quoted 1 line

Can these functions get swig'd and their wrappers built into _selinux.so?

Patches accepted.

One possible issue here is function pointer callbacks, which is a more general problem than just the avc interfaces in libselinux. But if you are ok with the default callbacks, I suppose there is no problem there.

--
Stephen Smalley
National Security Agency

Quoted 5 lines
Quoted 5 lines

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

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

#5 lore raw
Quoted 10 lines · Ted X Toth
Quoted 9 lines · Stephen Smalley
Quoted 3 lines · Xavier Toth

For now I don't think that's a problem as I was looking at using avc_has_perm and the context to sid conversion function.

What's the status on this? I see patches in the Fedora libselinux package to add the AVC interfaces to the swig bindings, but they aren't upstream. Do they work as expected?

Quoted 7 lines

The interfaces I'm using (avc_open, avc_reset, avc_context_to_sid, avc_has_perm_noaudit) are working as expected.

Quoted 3 lines

Should they be upstreamed?

I think so.

Ok, can you or Dan split that out and submit it please.

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.