Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030223AbWCTUSu (ORCPT ); Mon, 20 Mar 2006 15:18:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030236AbWCTUSu (ORCPT ); Mon, 20 Mar 2006 15:18:50 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:12163 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S1030223AbWCTUSt (ORCPT ); Mon, 20 Mar 2006 15:18:49 -0500 Date: Mon, 20 Mar 2006 12:18:02 -0800 From: Chris Wright To: Ingo Oeser Cc: Chris Wright , Ingo Oeser , davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Andrew Morton Subject: Re: [PATCH] scm: fold __scm_send() into scm_send() Message-ID: <20060320201802.GS15997@sorel.sous-sol.org> References: <200603130139.k2D1dpSQ021279@shell0.pdx.osdl.net> <200603132105.32794.ioe-lkml@rameria.de> <20060313173103.7681b49d.akpm@osdl.org> <200603201244.58507.netdev@axxeo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200603201244.58507.netdev@axxeo.de> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1166 Lines: 37 * Ingo Oeser (netdev@axxeo.de) wrote: > Hi Chris, > > Andrew Morton wrote: > > Ingo Oeser wrote: > > > > > > -int scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) > > > -{ > > > - struct task_struct *p = current; > > > - scm->creds = (struct ucred) { > > > - .uid = p->uid, > > > - .gid = p->gid, > > > - .pid = p->tgid > > > - }; > > > - scm->fp = NULL; > > > - scm->sid = security_sk_sid(sock->sk, NULL, 0); > > > - scm->seq = 0; > > > - if (msg->msg_controllen <= 0) > > > - return 0; > > > - return __scm_send(sock, msg, scm); > > > -} > > > > It's worth noting that scm_send() will call security_sk_sid() even if > > (msg->msg_controllen <= 0). > > Chris, do you know if this is needed in this case? This whole thing is looking broken. I'm still trying to find the original patch which caused the series of broken patches on top. thanks, -chris - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/