lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 31 Jul 2008 13:42:02 -0400
From:	Eric Paris <eparis@...hat.com>
To:	zhangxiliang <zhangxiliang@...fujitsu.com>
Cc:	sgrubb@...hat.com, viro@...iv.linux.org.uk,
	Linux Audit <linux-audit@...hat.com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] the loginuid field should be output in all
	AUDIT_CONFIG_CHANGE audit messages

On Wed, 2008-07-30 at 11:40 +0800, zhangxiliang wrote:
> In the audit message which type is "AUDIT_CONFIG_CHANGE", the output format should contain "auid" field.

shouldn't these be using the "audit_get_loginuid(current)"  and if we
are going to output loginuid we also should be outputting sessionid

-Eric

> 
> Signed-off-by: Zhang Xiliang <zhangxiliang@...fujitsu.com>
> ---
>  kernel/auditfilter.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
> index 98c50cc..8a184f5 100644
> --- a/kernel/auditfilter.c
> +++ b/kernel/auditfilter.c
> @@ -1022,8 +1022,9 @@ static void audit_update_watch(struct audit_parent *parent,
>  			struct audit_buffer *ab;
>  			ab = audit_log_start(NULL, GFP_KERNEL,
>  				AUDIT_CONFIG_CHANGE);
> +			audit_log_format(ab, "auid=%u", current->loginuid);
>  			audit_log_format(ab,
> -				"op=updated rules specifying path=");
> +				" op=updated rules specifying path=");
>  			audit_log_untrustedstring(ab, owatch->path);
>  			audit_log_format(ab, " with dev=%u ino=%lu\n",
>  				 dev, ino);
> @@ -1058,7 +1059,8 @@ static void audit_remove_parent_watches(struct audit_parent *parent)
>  				struct audit_buffer *ab;
>  				ab = audit_log_start(NULL, GFP_KERNEL,
>  					AUDIT_CONFIG_CHANGE);
> -				audit_log_format(ab, "op=remove rule path=");
> +				audit_log_format(ab, "auid=%u", current->loginuid);
> +				audit_log_format(ab, " op=remove rule path=");
>  				audit_log_untrustedstring(ab, w->path);
>  				if (r->filterkey) {
>  					audit_log_format(ab, " key=");
> -- 
> 1.5.4.2
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ