Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Auditing printing
Date: Tue, 01 May 2018 14:20:04 -0400	[thread overview]
Message-ID: <3565269.fGycRfvLUm@x2> (raw)
In-Reply-To: <CAJdJdQksRbcb1mJUYLzV+8L239-bAXXQB_dcLE6m-kW0bh7+gw@mail.gmail.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

  reply	other threads:[~2018-05-01 18:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-01 18:05 Auditing printing warron.french
2018-05-01 18:20 ` Steve Grubb [this message]
2018-05-01 18:29   ` warron.french
2018-05-01 21:53     ` Steve Grubb
2018-05-01 23:57       ` warron.french

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3565269.fGycRfvLUm@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox