On Aug 27, 2008, at 11:49 AM, Paul Moore wrote:
Hi, What we want is to create a socket within the context of a multilevel secure process. For example, if the process has an MLS range of s0-s1, we may want an s0 or s1 socket. Thus, in theory, we should be able to avoid dealing with context changes on connected sockets and such. Once the socket goes into any use, it cannot be relabeled. I am not sure that setxattr will work as this is an inode operation, and I do not see a reference from an inode to an associated socket. Originally, I was thinking of setsockopt, but I agree that it would be nice to deal with it via the file interface, like fsetfilecon. Thoughts? Regards, Trent. ---------------------------------------------- Trent Jaeger, Associate Professor Pennsylvania State University, CSE Dept 346A IST Bldg, University Park, PA 16802 Email: tjaeger@xxxxxxxxxxx Ph: (814) 865-1042, Fax: (814) 865-3176 |