]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: no longer expose kuid_t in the userspace dtrace API
authorNick Alcock <nick.alcock@oracle.com>
Fri, 10 Apr 2015 23:00:04 +0000 (00:00 +0100)
committerKris Van Hees <kris.van.hees@oracle.com>
Mon, 20 Apr 2015 08:11:23 +0000 (04:11 -0400)
commitdb319814c899e55edd1642aab6038b4a0ed63e87
tree3167ef57afb335650aebf78cf4fe792c88e5fe1c
parentaa0a4c0f1cd3e0b5d59727a681473080b62c963e
dtrace: no longer expose kuid_t in the userspace dtrace API

The public header installed as <linux/dtrace/stability.h> exposed
<linux/uidgid.h> to userspace as part of the dtrace_ppriv_t.dtpp_uid member.
This member (used for unprivileged tracing) is part of a facility that is not
yet ported, but using a kuid_t for this is clearly wrong, and as of kernel 4.0
won't compile when used in userspace either.

Fix by migrating to a uid_t and converting it to a kuid at the point of use.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/dtrace_match.c
dtrace/dtrace_ptofapi.c
dtrace/include/uapi/linux/dtrace/stability.h