Re: [PATCH][SMACK] add a socket_post_accept hook to fix netlabel issueswith labeled TCP servers V1

From: Tetsuo Handa
Date: Tue Feb 24 2009 - 16:49:35 EST


etienne wrote:
> The following patch adds a "post_access" hook to get the client IP and check it against the netlabel list.

Oh, SMACK starts to use security_socket_post_accept() hook?

Then why not move security_socket_post_accept() to before fd_install()?
If file descriptor table is shared between multiple processes,
another process can reach not-yet-labeled-by-security_socket_post_accept()
accept()ed socket.

(Well, I'm happy if security_socket_post_accept() can return error
because TOMOYO wants to implement personal firewall.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/