All of lore.kernel.org
 help / color / mirror / Atom feed
* type=USER_ROLE_CHANGE
@ 2006-07-13 21:03 Michael C Thompson
  2006-07-16 12:41 ` type=USER_ROLE_CHANGE Steve Grubb
  0 siblings, 1 reply; 3+ messages in thread
From: Michael C Thompson @ 2006-07-13 21:03 UTC (permalink / raw)
  To: Linux Audit, Steve Grubb, Amy Griffis

Hey Steve / Amy,

In doing some tests, I've noticed that the USER_ROLE_CHANGE audit record 
is associated with both newrole, and semanage user -[ad]. I do not think 
that USER_ROLE_CHANGE is a good name to have associated with SELinux 
user creation/removal, not to mention that the payload of the record 
resulting from newrole looks nothing like the payload from that 
generated by semanage user -[ad].

Can we add a USER_ROLE_MODIFY, or some other label, that would indicate 
and differentiate SELinux user creation/removal from a simple newrole?

Thanks,
Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: type=USER_ROLE_CHANGE
  2006-07-13 21:03 type=USER_ROLE_CHANGE Michael C Thompson
@ 2006-07-16 12:41 ` Steve Grubb
  2006-07-17 18:02   ` type=USER_ROLE_CHANGE Michael C Thompson
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Grubb @ 2006-07-16 12:41 UTC (permalink / raw)
  To: Michael C Thompson; +Cc: Linux Audit

On Thursday 13 July 2006 17:03, Michael C Thompson wrote:
> In doing some tests, I've noticed that the USER_ROLE_CHANGE audit record
> is associated with both newrole, and semanage user -[ad].

semanage should also be using these:

#define AUDIT_ROLE_ASSIGN            2301 /* Admin assigned user to role */
#define AUDIT_ROLE_REMOVE          2302 /* Admin removed user from role */

USER_ROLE_CHANGE should only be used when newrole is used. If semanage needs 
more record types let me know.

-Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: type=USER_ROLE_CHANGE
  2006-07-16 12:41 ` type=USER_ROLE_CHANGE Steve Grubb
@ 2006-07-17 18:02   ` Michael C Thompson
  0 siblings, 0 replies; 3+ messages in thread
From: Michael C Thompson @ 2006-07-17 18:02 UTC (permalink / raw)
  To: Steve Grubb; +Cc: Linux Audit

Steve Grubb wrote:
> On Thursday 13 July 2006 17:03, Michael C Thompson wrote:
>> In doing some tests, I've noticed that the USER_ROLE_CHANGE audit record
>> is associated with both newrole, and semanage user -[ad].
> 
> semanage should also be using these:
> 
> #define AUDIT_ROLE_ASSIGN            2301 /* Admin assigned user to role */
> #define AUDIT_ROLE_REMOVE          2302 /* Admin removed user from role */
> 
> USER_ROLE_CHANGE should only be used when newrole is used. If semanage needs 
> more record types let me know.
> 
> -Steve

Hey Steve,

I do not believe these messages are implemented, or at least are not 
properly used, in semanage. Doing semanage user changes or semanage 
login changes only result in USER_ROLE_CHANGE messages.

'semanage user -d deleteme_u' yeilds:

type=USER_ROLE_CHANGE msg=audit(1153152594.356:685): user pid=10862 
uid=0 auid=0 subj=root:staff_r:staff_t:s0-s15:c0.c255 msg='op=delete 
SELinux user record acct=deleteme_u old-seuser=? old-role=? old-range=? 
new-seuser=? new-role=? new-range=? exe=/usr/sbin/semanage (hostname=?, 
addr=?, terminal=pts/2 res=success)'

This is seen with policycoreutils-1.30.17-2.

Thanks,
Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-17 18:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-13 21:03 type=USER_ROLE_CHANGE Michael C Thompson
2006-07-16 12:41 ` type=USER_ROLE_CHANGE Steve Grubb
2006-07-17 18:02   ` type=USER_ROLE_CHANGE Michael C Thompson

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.