From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: Hundreds of null PATH records for *init_module syscall audit logs Date: Tue, 7 Mar 2017 13:04:09 -0500 Message-ID: <20170307130409.40d1963c@gandalf.local.home> References: <20170301031549.GT18258@madcap2.tricolour.ca> <20170301033704.GU18258@madcap2.tricolour.ca> <20170307033954.GS18258@madcap2.tricolour.ca> <20170307104139.38f5cd38@gandalf.local.home> <20170307160027.GB10258@madcap2.tricolour.ca> <20170307112056.4e27424a@gandalf.local.home> <20170307173955.GC10258@madcap2.tricolour.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170307173955.GC10258@madcap2.tricolour.ca> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Richard Guy Briggs Cc: Kroah-Hartman , LKML , Ingo Molnar , Al Viro , Linux-Audit Mailing List , Greg@redhat.com List-Id: linux-audit@redhat.com On Tue, 7 Mar 2017 12:39:55 -0500 Richard Guy Briggs wrote: > We normally don't expect the init_module syscall to have any PATH > records associated with it, so when a few of them had hundreds or more > this was surprising. Hmm, how does the syscall get a path associated to it? Just by its creation? That is, by calling init_module() which would load a module, would indeed create a path. Some modules do create their own debugfs files, which would explain why debugfs is shown too. > > If there is a way that debugfs or tracefs could be abused during an > init_module call (or any other syscall for that matter), we want to be > aware of it. This is why simply ignoring those PATH records is making > two of us nervous. If there's a bug in the kernel code, then I'm sure there's probably a way to abuse it. I also don't believe it should be ignored, which is why I'm asking these questions. I want to know what exactly is being looked at, and what is considered "OK" and what isn't. Now loading modules can indeed create files and directories. Is this something that the audit system needs to understand? -- Steve