From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 10 Mar 2016 16:49:39 +0100 From: Andrew Lunn Message-ID: <20160310154939.GA24918@lunn.ch> References: <1453953196-29943-1-git-send-email-andrew@lunn.ch> <23082646.VzubcaWY7q@prime> <20160202022512.GE12673@lunn.ch> <26995374.rRgDESDE4R@prime> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26995374.rRgDESDE4R@prime> Subject: Re: [B.A.T.M.A.N.] [PATCH 3/3] alfred: Mount debugfs before reducing capabilities List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Simon Wunderlich Cc: b.a.t.m.a.n@lists.open-mesh.org, Antonio Quartulli On Thu, Mar 10, 2016 at 04:09:18PM +0100, Simon Wunderlich wrote: > Hi Andrew, > > On Tuesday 02 February 2016 03:25:12 Andrew Lunn wrote: > > On Fri, Jan 29, 2016 at 01:14:53PM +0100, Simon Wunderlich wrote: > > > On Thursday 28 January 2016 04:53:15 Andrew Lunn wrote: > > [...] > > > > @@ -160,6 +161,9 @@ static struct globals *alfred_init(int argc, char > > > > *argv[]) {NULL, 0, NULL, 0}, > > > > > > > > }; > > > > > > > > + /* We need full capabilities to mount debugfs, so do that now */ > > > > + debugfs_mount(NULL); > > > > + > > > > > > > > ret = reduce_capabilities(); > > > > if (ret < 0) > > > > > > > > return NULL; > > > > > > Can't we remove the other calls to debugfs_mount() ? I see 3 more calls in > > > alfred ... > > > > Yes, the other calls within this binary are probably failing, due to > > reduced capabilities. I can remove them in a v3 patch. > > > > Andrew > > Are you still planning on sending a fixed patchset? :) Hi Simon I have a fixed up version. But at the moment, it is not clear what is happening with the kernel patches. Maybe we need to change the debugfs API in order to make it easier to build with older kernels? Andrew