userspace: restrict k_object_access_all_grant()

This is too powerful for user mode, the other access APIs
require explicit permissions on the threads that are being
granted access.

The API is no longer exposed as a system call and hence will
only be usable by supervisor threads.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-10-14 14:42:23 -07:00 committed by Andrew Boie
commit 41bab6e360
3 changed files with 3 additions and 14 deletions

View file

@ -212,7 +212,7 @@ static inline void _impl_k_object_access_revoke(void *object,
ARG_UNUSED(thread);
}
static inline void _impl_k_object_access_all_grant(void *object)
static inline void k_object_access_all_grant(void *object)
{
ARG_UNUSED(object);
}
@ -259,7 +259,7 @@ __syscall void k_object_access_revoke(void *object, struct k_thread *thread);
*
* @param object Address of kernel object
*/
__syscall void k_object_access_all_grant(void *object);
void k_object_access_all_grant(void *object);
/* timeouts */