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:
parent
04caa679c9
commit
41bab6e360
3 changed files with 3 additions and 14 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue