Remove procgroup capabilities
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m6s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m6s
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
#include <libk/std.h>
|
||||
#include <limine/requests.h>
|
||||
#include <mm/malloc.h>
|
||||
#include <proc/capability.h>
|
||||
#include <proc/proc.h>
|
||||
#include <status.h>
|
||||
#include <sys/debug.h>
|
||||
@@ -35,9 +34,6 @@ DEFINE_DEVICE_INIT (terminal_init) {
|
||||
DEFINE_DEVICE_FINI (terminal_fini) {}
|
||||
|
||||
DEFINE_DEVICE_OP (terminal_putstr) {
|
||||
if (!(proc->procgroup->capabilities & PROC_CAP_TERMINAL))
|
||||
return -ST_PERMISSION_ERROR;
|
||||
|
||||
char* string = (char*)a1;
|
||||
size_t* len = (size_t*)a2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user