From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262897AbVGHUvd (ORCPT ); Fri, 8 Jul 2005 16:51:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262851AbVGHUv3 (ORCPT ); Fri, 8 Jul 2005 16:51:29 -0400 Received: from mail.kroah.org ([69.55.234.183]:20692 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S262898AbVGHUty (ORCPT ); Fri, 8 Jul 2005 16:49:54 -0400 Date: Fri, 8 Jul 2005 13:49:25 -0700 From: Greg KH To: serue@us.ibm.com Cc: James Morris , Tony Jones , lkml , Chris Wright , Stephen Smalley , Andrew Morton , Michael Halcrow , David Safford , Reiner Sailer , Gerrit Huizenga Subject: Re: [PATCH] securityfs Message-ID: <20050708204924.GA963@kroah.com> References: <20050703204423.GA17418@kroah.com> <20050706220835.GA32005@serge.austin.ibm.com> <20050706222237.GB6696@kroah.com> <20050707173035.GA10503@vino.hallyn.com> <20050707174852.GA19609@kroah.com> <20050707182720.GA26431@serge.austin.ibm.com> <20050707224604.GA13117@vino.hallyn.com> <20050707230609.GA851@kroah.com> <20050708204419.GA30515@serge.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050708204419.GA30515@serge.austin.ibm.com> User-Agent: Mutt/1.5.8i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 08, 2005 at 03:44:19PM -0500, serue@us.ibm.com wrote: > Quoting Greg KH (greg@kroah.com): > > On Thu, Jul 07, 2005 at 05:46:04PM -0500, serge@hallyn.com wrote: > > > > > > With the obvious fix, that does in fact work (patch appended). > > > > Good. > > > > > The __simple_attr_check_format problem remains however. I assume we > > > don't really want to just take it out, though, like this patch does? > > > > No we do not. > > > > > The error I get without the fs.h patch is: > > > > > > security/seclvl.c: In function `seclvl_file_ops_open': > > > security/seclvl.c:186: warning: int format, different type arg (arg 2) > > > > Care to work to try to fix it up? > > Once again, the simple_attr in libfs was actually sufficient - I'd > thought the __attribute__(format(printk(1,2))) was more mysterious than > it really is. > > At last, here is the full patch to make seclvl use securityfs. > > thanks, > -serge > > Signed-off-by: Serge Hallyn > -- > seclvl.c | 228 +++++++++++++++++++-------------------------------------------- > 1 files changed, 70 insertions(+), 158 deletions(-) Very nice, it's always good to end up removing lines of code :) thanks for verifying that it all works properly. Chris, care to forward the securityfs patch to Linus? thanks, greg k-h