Skip to contentSkip to conversation

splice syscall

DISCUSSION Steve G 2 participants 3 messages Apr 24, 2007 SELinux security module

lore
Share & tools
lore

Steve G

author
#0 lore raw

Hi,

I was looking at sys_splice, do_splice, and do_splice_to/from. None of which seem to have a SE Linux permission check. Is the splice syscall controlled by SE Linux other than the initial creation of the descriptors?

-Steve

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
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
#1 lore raw
Quoted 3 lines

Is the splice syscall controlled by SE Linux other than the initial creation of the descriptors?

On second thought, you can mimick this syscall in user space, so I guess it doesn't matter. (The thought was that maybe it could be used to upgrade/downgrade information.)

-Steve

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
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
Quoted 6 lines · Steve G
Quoted 2 lines

Is the splice syscall controlled by SE Linux other than the initial creation of the descriptors?

On second thought, you can mimick this syscall in user space, so I guess it doesn't matter. (The thought was that maybe it could be used to upgrade/downgrade information.)

The lack of security_file_permission() hook calls on the code path should likely be corrected (so that access is revalidated on use, e.g. to support revocation of access upon file relabel or policy change), but SELinux checking would have been initially applied when the descriptor was created, inherited, or transferred. And if I understand correctly, you are not relying on the read/write checking in general for LSPP, only the open time checking, so this wouldn't be any different.

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.