Commit Graph

237 Commits

Author SHA1 Message Date
Matheus 87adc4d10a setpgid: check if pid is the current proc or a child 2024-08-25 12:51:10 -03:00
Matheus 12dd3dc089 mmap: check file permissions before allowing it to be mapped 2024-08-25 11:58:09 -03:00
Matheus 914e075397 localsock: check for file permissions 2024-08-25 11:29:55 -03:00
Matheus cb1cf8a31f utime: proper auth checks 2024-08-24 23:16:55 -03:00
Matheus 0e0471f8ee open: make file truncation require FILE_WRITE 2024-08-24 23:16:30 -03:00
Matheus 193f5b49b9 mount: call into auth 2024-08-24 22:56:22 -03:00
Matheus 7afed7daee sethostname: do auth check 2024-08-24 22:34:26 -03:00
Matheus 807c27e7f5 getdent: make sure fd is readable 2024-08-24 22:33:58 -03:00
Matheus 4308317ea5 execve: SUID and SGID 2024-08-24 21:53:05 -03:00
Matheus cd51d4eaf0 auth: chroot 2024-08-24 21:52:44 -03:00
Matheus 357f5c65cf vfs: access check on vfs_lookup 2024-08-24 20:21:42 -03:00
Matheus 4d51507953 auth: initial implementation + some filesystem checks 2024-08-24 20:01:01 -03:00
Matheus ecd4a72677 itimer: allow interrupts to happen while waiting to schedule on a specific cpu 2024-08-22 20:17:32 -03:00
Matheus ad6fb43623 syscalls: mprotect 2024-08-21 21:34:26 -03:00
Matheus da9c40b054 cred: setting and getting ids 2024-08-16 20:02:12 -03:00
Matheus bf7851b352 dpc: fix possible race 2024-08-14 16:39:27 -03:00
Matheus b6ed9c1bac syscalls: mknodat 2024-08-11 14:45:10 -03:00
Matheus f02a63473f pipefs: prepare pipefs_open for named pipe support 2024-08-11 12:25:17 -03:00
Matheus d310764085 vmm: VMM_FLAGS_REPLACE 2024-08-10 22:41:29 -03:00
Matheus 4a7ccc208c read/write syscalls: properly handle nbytes = 0 2024-07-30 20:30:55 -03:00
Matheus ed46c95d59 waitpid: remove unescessary lock 2024-07-30 20:30:35 -03:00
Matheus c3ab666f8d fchmod: fix missing fd_release 2024-07-11 00:07:24 -03:00
Matheus 48ebc6c0ce signal: fix stack corruption on action reset 2024-06-27 22:59:29 -03:00
Matheus d8d39a288a syscalls: fix unsafe userspace dereference in getpeername 2024-06-27 22:44:45 -03:00
Matheus 7feed00dc7 waitpid: fix pid > 0 2024-06-26 21:08:38 -03:00
Matheus 9f48a87ae8 syscalls: pread and pwrite 2024-06-23 20:21:29 -03:00
Matheus 8bda483d64 fcntl: fix F_SETFD and F_GETFD 2024-06-22 19:28:43 -03:00
Matheus f82b07328a syscalls: ppoll 2024-06-19 21:56:26 -03:00
Matheus 9eba220859 getsockname: fix unsafe pointer dereference 2024-06-17 20:30:43 -03:00
Matheus e45b1aa911 signal: use usercopy 2024-06-17 19:19:51 -03:00
Matheus f05eb36cfd kernel: remove already done TODOs 2024-06-16 12:48:16 -03:00
Matheus 5b6d15a06c fs: return device filesystem is mounted on 2024-06-16 12:32:32 -03:00
Matheus e4ec9311e2 syscalls: pause 2024-06-14 17:05:31 -03:00
Matheus 98c5963893 accept: return address 2024-06-12 19:09:03 -03:00
Matheus d461ad1a0b file: fd_(set/get)flags() 2024-06-12 18:54:55 -03:00
Matheus 34596bb5e9 sock: fix abisockaddr type not being returned 2024-06-10 23:01:19 -03:00
Matheus c21227c42b poll: fix not returning EINTR on signal 2024-06-10 17:50:56 -03:00
Matheus f7b761e883 net: SOCKET_SEND_FLAGS_NOSIGNAL 2024-06-10 17:32:41 -03:00
Matheus 50b4b45d00 kernel: usercopy functions 2024-06-09 19:31:26 -03:00
Matheus f9c5a696c7 signal: fix lock ordering issue 2024-06-08 14:03:41 -03:00
Matheus b607ca7f4b syscalls: chroot getpeername getsockname socketpair 2024-06-04 22:45:04 -03:00
Matheus b230d58a3f socket: getname, getpeername, setopt 2024-06-04 22:44:37 -03:00
Matheus 7cad8f53f2 tcp: initial implementation 2024-06-03 22:02:58 -03:00
Matheus 40d8a05062 sock: MSG_PEEK and other fixes 2024-06-03 21:53:46 -03:00
Matheus 9260c8cb96 scheduler: use a linked list for threads in a process instead of a table 2024-05-29 12:55:10 -03:00
Matheus 5f7791cd08 syscalls: fchdir, setitimer, getitimer 2024-05-29 11:14:07 -03:00
Matheus c81bdac897 signals: handle SIGBUS, SIGSEGV, SIGILL etc 2024-05-29 11:06:15 -03:00
Matheus f434a4d341 timer: return remaining microseconds on timer_remove 2024-05-29 10:59:28 -03:00
Matheus b28e556a81 scheduler: interrupt thing fix 2024-05-28 17:47:06 -03:00
Matheus 0030a0b21b vfs: make setattr take in which attributes to change 2024-05-27 23:05:57 -03:00