From: Gao feng <gaofeng@cn.fujitsu.com>
To: Richard Guy Briggs <rgb@redhat.com>
Cc: linux-audit@redhat.com
Subject: Re: [PATCH 5/5] audit: change the type of oldloginuid from kuid_t to unsigned long
Date: Sat, 02 Nov 2013 14:16:35 +0800 [thread overview]
Message-ID: <527498C3.4050604@cn.fujitsu.com> (raw)
In-Reply-To: <20131102050054.GB3405@madcap2.tricolour.ca>
On 11/02/2013 01:00 PM, Richard Guy Briggs wrote:
> On Fri, Nov 01, 2013 at 07:34:46PM +0800, Gao feng wrote:
>> The type of oldloginuid should be unsigned long.
>
> Can you say why unsigned long rather than int returned from
> audit_get_sessionid() or unsigned int expected by
> audit_log_set_loginuid()?
Oh..it's my miss, it definitely should be unsigned int.
I will resend this one separately.
Thanks!
>
> Kees: For that matter, why does audit_get_sessionid() return int rather
> than unsigned int from task_struct? That was introduced in commit
> 9321d526.
>
>> Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
>> ---
>> kernel/auditsc.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/kernel/auditsc.c b/kernel/auditsc.c
>> index ceb396f..9f871ad 100644
>> --- a/kernel/auditsc.c
>> +++ b/kernel/auditsc.c
>> @@ -2018,7 +2018,8 @@ int audit_set_loginuid(kuid_t loginuid)
>> {
>> struct task_struct *task = current;
>> unsigned int sessionid = -1;
>> - kuid_t oldloginuid, oldsessionid;
>> + kuid_t oldloginuid;
>> + unsigned long oldsessionid;
>> int rc;
>>
>> oldloginuid = audit_get_loginuid(current);
>> --
>> 1.8.3.1
>
> - RGB
>
> --
> Richard Guy Briggs <rbriggs@redhat.com>
> Senior Software Engineer, Kernel Security, AMER ENG Base Operating Systems, Red Hat
> Remote, Ottawa, Canada
> Voice: +1.647.777.2635, Internal: (81) 32635, Alt: +1.613.693.0684x3545
>
prev parent reply other threads:[~2013-11-02 6:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 11:34 [PATCH 1/5] audit: fix incorrect order of log new and old feature Gao feng
2013-11-01 11:34 ` [PATCH 2/5] audit: don't generate audit feature changed log when audit disabled Gao feng
2013-11-01 11:34 ` [PATCH 3/5] audit: use old_lock in audit_set_feature Gao feng
2013-11-01 11:34 ` [PATCH 4/5] audit: don't generate loginuid log when audit disabled Gao feng
2013-11-01 11:34 ` [PATCH 5/5] audit: change the type of oldloginuid from kuid_t to unsigned long Gao feng
2013-11-02 5:00 ` Richard Guy Briggs
2013-11-02 6:16 ` Gao feng [this message]
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=527498C3.4050604@cn.fujitsu.com \
--to=gaofeng@cn.fujitsu.com \
--cc=linux-audit@redhat.com \
--cc=rgb@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 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.