On Wed, 2005-02-09 at 13:37, Chris Wright wrote:
This means sendmsg hook would set the SID? And in that case,
you'd
stomp on loginuid for audit messages unless they are special cased.
I was referring to a separate field for use by security modules, not
re-use of the same field being proposed for the loginuid. Yes, it would
be set by the security_netlink_send hook. The principal problem with
such a security field is that unless we mandate it to be a simple
integer value (like a SELinux SID), we have to deal with lifecycle
management for it, i.e. a set of hooks that starts to look like the
sk_buff security hooks from the old LSM patch. But if we can limit it
to a simple value, then it would be useful for such security
identifiers, and allow receiver-side permission checks based on the
sender SID.
The loginuid is special case to audit, it doesn't make sense to
me that
it is in generic netlink_skb_parms structure unless it's used by more
netlink users.
So you also think it should be in the payload? That would require
security_netlink_send to dig into the payload if we wanted to control
who can specify other loginuids, as Serge noted.
--
Stephen Smalley <sds(a)epoch.ncsc.mil>
National Security Agency