* shadow: what uid to log?
@ 2019-10-17 21:05 Christian Göttsche
2019-10-23 16:20 ` Steve Grubb
0 siblings, 1 reply; 2+ messages in thread
From: Christian Göttsche @ 2019-10-17 21:05 UTC (permalink / raw)
To: linux-audit
Hi,
I am working on migrating src:shadow to today's SELinux api and
enabling audit logging for denials.
The question which uid to log with 'audit_log_user_avc_message' came up.
What is preferred for the applications like passwd, chfn, ... , which
might be setuid binaries (getuid, geteuid, 0)?
Kind regards,
Christian Göttsche
--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: shadow: what uid to log?
2019-10-17 21:05 shadow: what uid to log? Christian Göttsche
@ 2019-10-23 16:20 ` Steve Grubb
0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2019-10-23 16:20 UTC (permalink / raw)
To: linux-audit; +Cc: Christian Göttsche
On Thursday, October 17, 2019 5:05:56 PM EDT Christian Göttsche wrote:
> I am working on migrating src:shadow to today's SELinux api and
> enabling audit logging for denials.
>From within the application? It seems that policy could be/is written to
block execution and prevent any changes. That is, unless you are allowing fine
grained controls like you can update the password but not the user name or
anything else in the database.
> The question which uid to log with 'audit_log_user_avc_message' came up.
This is normally thought of in a client/server situation such as dbus (system
not session). Dbus runs as root and has no associated login uid so in this
case you would want to know who dbus was making a decision for. It would know
who the peer is.
In the case where the application is invoked by the user, just use the uid to
whatever the account is that is being operated on. In the case where no
account exists because it is being created, then use -1.
> What is preferred for the applications like passwd, chfn, ... , which
> might be setuid binaries (getuid, geteuid, 0)?
Hope this helps...
-Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-23 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-17 21:05 shadow: what uid to log? Christian Göttsche
2019-10-23 16:20 ` Steve Grubb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox