<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/kernel/auditfilter.c, branch v2.6.17.10</title>
<subtitle>Clone of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/'/>
<entry>
<title>[PATCH] More user space subject labels</title>
<updated>2006-05-01T10:10:01+00:00</updated>
<author>
<name>Steve Grubb</name>
<email>sgrubb@redhat.com</email>
</author>
<published>2006-04-01T23:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=ce29b682e228c70cdc91a1b2935c5adb2087bab8'/>
<id>ce29b682e228c70cdc91a1b2935c5adb2087bab8</id>
<content type='text'>
Hi,

The patch below builds upon the patch sent earlier and adds subject label to
all audit events generated via the netlink interface. It also cleans up a few
other minor things.

Signed-off-by: Steve Grubb &lt;sgrubb@redhat.com&gt;

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hi,

The patch below builds upon the patch sent earlier and adds subject label to
all audit events generated via the netlink interface. It also cleans up a few
other minor things.

Signed-off-by: Steve Grubb &lt;sgrubb@redhat.com&gt;

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] support for context based audit filtering, part 2</title>
<updated>2006-05-01T10:09:36+00:00</updated>
<author>
<name>Darrel Goeddel</name>
<email>dgoeddel@trustedcs.com</email>
</author>
<published>2006-03-11T00:14:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=3dc7e3153eddfcf7ba8b50628775ba516e5f759f'/>
<id>3dc7e3153eddfcf7ba8b50628775ba516e5f759f</id>
<content type='text'>
This patch provides the ability to filter audit messages based on the
elements of the process' SELinux context (user, role, type, mls sensitivity,
and mls clearance).  It uses the new interfaces from selinux to opaquely
store information related to the selinux context and to filter based on that
information.  It also uses the callback mechanism provided by selinux to
refresh the information when a new policy is loaded.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch provides the ability to filter audit messages based on the
elements of the process' SELinux context (user, role, type, mls sensitivity,
and mls clearance).  It uses the new interfaces from selinux to opaquely
store information related to the selinux context and to filter based on that
information.  It also uses the callback mechanism provided by selinux to
refresh the information when a new policy is loaded.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] sem2mutex: audit_netlink_sem</title>
<updated>2006-03-20T19:08:55+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2006-03-08T07:51:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=5a0bbce58bb25bd756f7ec437319d6ed2201a18b'/>
<id>5a0bbce58bb25bd756f7ec437319d6ed2201a18b</id>
<content type='text'>
Semaphore to mutex conversion.

The conversion was generated via scripts, and the result was validated
automatically via a script as well.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Semaphore to mutex conversion.

The conversion was generated via scripts, and the result was validated
automatically via a script as well.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] Fix audit operators</title>
<updated>2006-03-20T19:08:55+00:00</updated>
<author>
<name>Dustin Kirkland</name>
<email>dustin.kirkland@us.ibm.com</email>
</author>
<published>2006-02-16T19:40:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=d9d9ec6e2c45b22282cd36cf92fcb23d504350a8'/>
<id>d9d9ec6e2c45b22282cd36cf92fcb23d504350a8</id>
<content type='text'>
Darrel Goeddel initiated a discussion on IRC regarding the possibility
of audit_comparator() returning -EINVAL signaling an invalid operator.

It is possible when creating the rule to assure that the operator is one
of the 6 sane values.  Here's a snip from include/linux/audit.h  Note
that 0 (nonsense) and 7 (all operators) are not valid values for an
operator.

...

/* These are the supported operators.
 *      4  2  1
 *      =  &gt;  &lt;
 *      -------
 *      0  0  0         0       nonsense
 *      0  0  1         1       &lt;
 *      0  1  0         2       &gt;
 *      0  1  1         3       !=
 *      1  0  0         4       =
 *      1  0  1         5       &lt;=
 *      1  1  0         6       &gt;=
 *      1  1  1         7       all operators
 */
...

Furthermore, prior to adding these extended operators, flagging the
AUDIT_NEGATE bit implied !=, and otherwise == was assumed.

The following code forces the operator to be != if the AUDIT_NEGATE bit
was flipped on.  And if no operator was specified, == is assumed.  The
only invalid condition is if the AUDIT_NEGATE bit is off and all of the
AUDIT_EQUAL, AUDIT_LESS_THAN, and AUDIT_GREATER_THAN bits are
on--clearly a nonsensical operator.

Now that this is handled at rule insertion time, the default -EINVAL
return of audit_comparator() is eliminated such that the function can
only return 1 or 0.

If this is acceptable, let's get this applied to the current tree.

:-Dustin

--

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
(cherry picked from 9bf0a8e137040f87d1b563336d4194e38fb2ba1a commit)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Darrel Goeddel initiated a discussion on IRC regarding the possibility
of audit_comparator() returning -EINVAL signaling an invalid operator.

It is possible when creating the rule to assure that the operator is one
of the 6 sane values.  Here's a snip from include/linux/audit.h  Note
that 0 (nonsense) and 7 (all operators) are not valid values for an
operator.

...

/* These are the supported operators.
 *      4  2  1
 *      =  &gt;  &lt;
 *      -------
 *      0  0  0         0       nonsense
 *      0  0  1         1       &lt;
 *      0  1  0         2       &gt;
 *      0  1  1         3       !=
 *      1  0  0         4       =
 *      1  0  1         5       &lt;=
 *      1  1  0         6       &gt;=
 *      1  1  1         7       all operators
 */
...

Furthermore, prior to adding these extended operators, flagging the
AUDIT_NEGATE bit implied !=, and otherwise == was assumed.

The following code forces the operator to be != if the AUDIT_NEGATE bit
was flipped on.  And if no operator was specified, == is assumed.  The
only invalid condition is if the AUDIT_NEGATE bit is off and all of the
AUDIT_EQUAL, AUDIT_LESS_THAN, and AUDIT_GREATER_THAN bits are
on--clearly a nonsensical operator.

Now that this is handled at rule insertion time, the default -EINVAL
return of audit_comparator() is eliminated such that the function can
only return 1 or 0.

If this is acceptable, let's get this applied to the current tree.

:-Dustin

--

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
(cherry picked from 9bf0a8e137040f87d1b563336d4194e38fb2ba1a commit)
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] add/remove rule update</title>
<updated>2006-03-20T19:08:55+00:00</updated>
<author>
<name>Steve Grubb</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2006-01-09T14:48:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=5d3301088f7e412992d9e61cc3604cbdff3090ff'/>
<id>5d3301088f7e412992d9e61cc3604cbdff3090ff</id>
<content type='text'>
Hi,

The following patch adds a little more information to the add/remove rule message emitted
by the kernel.

Signed-off-by: Steve Grubb &lt;sgrubb@redhat.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hi,

The following patch adds a little more information to the add/remove rule message emitted
by the kernel.

Signed-off-by: Steve Grubb &lt;sgrubb@redhat.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] audit string fields interface + consumer</title>
<updated>2006-03-20T19:08:54+00:00</updated>
<author>
<name>Amy Griffis</name>
<email>amy.griffis@hp.com</email>
</author>
<published>2006-02-07T17:05:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=93315ed6dd12dacfc941f9eb8ca0293aadf99793'/>
<id>93315ed6dd12dacfc941f9eb8ca0293aadf99793</id>
<content type='text'>
Updated patch to dynamically allocate audit rule fields in kernel's
internal representation.  Added unlikely() calls for testing memory
allocation result.

Amy Griffis wrote:     [Wed Jan 11 2006, 02:02:31PM EST]
&gt; Modify audit's kernel-userspace interface to allow the specification
&gt; of string fields in audit rules.
&gt;
&gt; Signed-off-by: Amy Griffis &lt;amy.griffis@hp.com&gt;

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
(cherry picked from 5ffc4a863f92351b720fe3e9c5cd647accff9e03 commit)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Updated patch to dynamically allocate audit rule fields in kernel's
internal representation.  Added unlikely() calls for testing memory
allocation result.

Amy Griffis wrote:     [Wed Jan 11 2006, 02:02:31PM EST]
&gt; Modify audit's kernel-userspace interface to allow the specification
&gt; of string fields in audit rules.
&gt;
&gt; Signed-off-by: Amy Griffis &lt;amy.griffis@hp.com&gt;

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
(cherry picked from 5ffc4a863f92351b720fe3e9c5cd647accff9e03 commit)
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] Minor cosmetic cleanups to the code moved into auditfilter.c</title>
<updated>2006-03-20T19:08:54+00:00</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2005-12-16T10:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=d884596f44ef5a0bcd8a66405dc04902aeaa6fc7'/>
<id>d884596f44ef5a0bcd8a66405dc04902aeaa6fc7</id>
<content type='text'>
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] Fix audit record filtering with !CONFIG_AUDITSYSCALL</title>
<updated>2006-03-20T19:08:54+00:00</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2005-12-15T18:33:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/linux.git/commit/?id=fe7752bab26a9ac0651b695ad4f55659761f68f7'/>
<id>fe7752bab26a9ac0651b695ad4f55659761f68f7</id>
<content type='text'>
This fixes the per-user and per-message-type filtering when syscall
auditing isn't enabled.

[AV: folded followup fix from the same author]

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the per-user and per-message-type filtering when syscall
auditing isn't enabled.

[AV: folded followup fix from the same author]

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
</feed>
