Sorry I'm late to the party ...
On Friday 30 May 2008 8:58:26 pm Ahmed S. Darwish wrote:
From my understanding of Smack that is what the ambient label does
currently. Does this not work correctly for you?
Well, what are you trying to do (it isn't clear to me from the code
snippet above)? The netlbl_sock_setattr() function looks at the
secattr->domain field and uses the value their to lookup the desired
labeling protocol (currently either CIPSO or unlabeled) and then the
NetLabel subsystem passes the socket and the secattr information onto
the specific protocol handler where the secattr->attr information is
used to assign on-the-wire labels to the socket.
--
paul moore
linux @ hp
--