mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
raw sockets: make creating them a privileged operation
This commit is contained in:
@@ -6,13 +6,10 @@
|
||||
#include <spinlock.h>
|
||||
#include <kernel/interrupt.h>
|
||||
#include <ringbuffer.h>
|
||||
#include <kernel/auth.h>
|
||||
#include <list.h>
|
||||
|
||||
#define SOCKET_BUFFER (16 * 1024)
|
||||
|
||||
// TODO: check user creating socket is root
|
||||
|
||||
SPINLOCK_DEFINE(list_lock);
|
||||
static list_t socket_list;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user