Skip to contentSkip to conversation

setrans client support in libselinux

DISCUSSION Stephen Smalley 1 participant 1 message May 8, 2006 1 message not in the archive SELinux security module

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 7 lines · Daniel J Walsh

I am looking to remove libsetrans altogether and put the setrans_client into libselinux and then create a mcstrans package which would just me the mcs translation daemon.

This patch includes the last patch on libselinux.

These packages will need to be added/updated simultaneously.

Merged. This moves the client-side support for a translation daemon directly into libselinux, eliminating the use of a separate libsetrans. However, we need to think about how to optimize to avoid the socket/connect/close overhead on every libselinux function, particularly when no daemon is present at all. I experimented briefly with creating and connecting a socket during library initialization and re-using it for subsequent calls, with code to recreate it if the connection was reset, but this didn't seem to work well with sshd; likely it is closing descriptors during setup of the unprivileged child process for privilege separation, and the descriptor is being reused for some other purpose.

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.