From: Etienne Basset <etienne.basset@numericable.fr>
To: Casey Schaufler <casey@schaufler-ca.com>,
LSM <linux-security-module@vger.kernel.org>
Cc: Eric Paris <eparis@redhat.com>, linux-audit@redhat.com
Subject: [PATCH 0/2] security/smack implement logging V3
Date: Wed, 08 Apr 2009 20:39:22 +0200 [thread overview]
Message-ID: <49DCEF5A.3010609@numericable.fr> (raw)
Hello,
the following 2 patches implements auditing of security events for Smack.
patch 1 : created common LSM auditing code
patch 2 : convert smack to use it
Changes since V2 :
- don't make Smack depend on AUDIT
I tried to make it zero overhead in the !CONFIG_AUDIT case,
without making the code too ugly (??). I hope i didn't mess it too much
- makes everything a key=value pair
- various other cleanup suggested by Eric and Casey
Change since V1 :
moves shareable code to include/linux/lsm_audit.h and security/lsm_audit.c.
Smack specific logging functions are now defined in smack_access.c
sample logs produced :
type=1400 audit(1239127887.607:13): lsm=SMACK fn=smack_sb_mount action=denied subject="FOO" object="_" requested=w pid=6693 comm="mount" path="/debug" dev=sda5 ino=16161
type=1400 audit(1239127890.267:14): lsm=SMACK fn=smack_ptrace_may_access action=denied subject="FOO" object="_" requested=rw pid=6696 comm="ps" pid=6380 comm="bash"
type=1400 audit(1239127895.051:20): lsm=SMACK fn=smack_task_kill action=denied subject="FOO" object="_" requested=w pid=6646 comm="bash" pid=6606 comm="thunderbird-bin"
type=1400 audit(1239127908.555:21): lsm=SMACK fn=smack_inode_getattr action=denied subject="FOO" object="etienne" requested=r pid=6646 comm="bash" path="/home/etienne/Desktop" dev=sda8 ino=1237000
type=1400 audit(1239127909.223:22): lsm=SMACK fn=smack_inode_permission action=denied subject="FOO" object="_" requested=wx pid=6699 comm="rm" name="etienne" dev=sda8 ino=1236993
type=1400 audit(1239128125.263:24): lsm=SMACK fn=smack_netlabel_send action=denied subject="FOO" object="BAR" requested=w pid=6757 comm="telnet" daddr=212.180.1.1 dest=80
next reply other threads:[~2009-04-08 18:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 18:39 Etienne Basset [this message]
2009-04-13 23:07 ` [PATCH 0/2] security/smack implement logging V3 James Morris
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=49DCEF5A.3010609@numericable.fr \
--to=etienne.basset@numericable.fr \
--cc=casey@schaufler-ca.com \
--cc=eparis@redhat.com \
--cc=linux-audit@redhat.com \
--cc=linux-security-module@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.