Re: Socket and inode label consistency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-08-26 at 20:50 -0400, Trent Jaeger wrote:
> Hi,
> 
> I see on the Kernel Development To Do list at http:// 
> selinuxproject.org/page/Kernel_Development that the following task is  
> identified:
> 
> "Full APIs for getting and setting security contexts of sockets and  
> IPC objects. Ensure that socket context is kept consistent on socket  
> inode and sock structures when changed."
> 
> We are being bitten by this now, so I am wondering if anyone is  
> working on it or wishes to discuss how to proceed.  We would be  
> interested in addressing this issue.

I don't know of anyone working on it, but we are interested in it.
As I recall, you can get and set the socket inode label via fgetxattr
and fsetxattr but the struct sock label isn't accessible from userspace
(except via getpeercon, and then only for the peer).  I think you'd need
to add a .setxattr method to the socket_file_ops and have them call into
the LSM interface to update the sock information (as well as continuing
to update the socket inode info).

-- 
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 majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux