From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Auditing printing Date: Tue, 01 May 2018 14:20:04 -0400 Message-ID: <3565269.fGycRfvLUm@x2> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Tuesday, May 1, 2018 2:05:36 PM EDT warron.french wrote: > I have a requirement to monitor two (2) things: > > 1. Print to file > > 2. Print to (printer) device > > > What is the best approach for this? Cups should be hardwired to audit. # ldd /usr/sbin/cupsd | grep audit libaudit.so.1 => /lib64/libaudit.so.1 (0x00007f04f1cfa000) It's been a long time since I looked at this. -Steve > I don't see a syscall that looks > appropriate - but that doesn't mean there is not one. > > Would I simply do an audit on the *lpr* command? Or is it another command? > > I need the ability to monitor printing to both file and device, *FROM*, > linux shell as well as console or GUI. > > Can someone advise me on how to accomplish this please? > > > Thanks in advance, > -------------------------- > Warron French