Theodore Dubois
e96882c07a
Get rid of idiotic fork_task function that broke threads
2019-05-05 22:09:37 -07:00
Theodore Dubois
76698412b1
Stub membarrier
2019-05-05 19:51:08 -07:00
Theodore Dubois
7d030189d2
Zero out a tty's session when the session dies
2019-05-05 19:47:26 -07:00
Theodore Dubois
3b01daa41e
Only acquire a controlling tty if the tty has no session
2019-05-05 16:31:07 -07:00
Theodore Dubois
cebd8758ec
Add strace for chmod and chown
2019-05-05 13:17:09 -07:00
Theodore Dubois
7a45420ac0
Make the session automatically restart
2019-05-05 09:21:13 -07:00
Theodore Dubois
fd3308f2c6
fuck
2019-05-04 23:52:24 -07:00
Theodore Dubois
5adc2832a6
Correct references to RLIM_INFINITY_
2019-05-04 23:48:59 -07:00
Theodore Dubois
894c3d2af5
Make the whole boot system thing happen
2019-05-04 23:32:24 -07:00
Theodore Dubois
cc08b17c48
Add flags option to mount
2019-05-01 18:12:58 -07:00
Theodore Dubois
a94a56cfb4
Rework implementation of rlimit calls
...
Turns out prlimit is the only call that takes a 64-bit rlimit struct.
The other ones are supposed to take a 32 bit struct, and I never noticed
any stack smashing until now because musl just uses prlimit.
2019-05-01 16:25:32 -07:00
Theodore Dubois
623be6edc1
Implement tgkill
2019-05-01 15:31:15 -07:00
Theodore Dubois
480fde90f7
Implement utimes
2019-05-01 14:41:08 -07:00
Theodore Dubois
9757444e8d
Implement sendmmsg
2019-05-01 10:34:45 -07:00
Theodore Dubois
6904368c7d
Store the robust list
2019-05-01 09:45:20 -07:00
Theodore Dubois
54c236f375
Stub arch_prctl
2019-05-01 09:45:10 -07:00
Theodore Dubois
d405f1abcf
Don't crash when given an out of bounds syscall
2019-05-01 09:44:43 -07:00
Theodore Dubois
cef1841a40
Make it possible to run init
...
If you set the init command to /sbin/init, you'll see it fail to run openrc and then start a working getty.
2019-05-01 08:53:25 -07:00
Theodore Dubois
8d533146c5
Implement getdents
2019-05-01 08:50:41 -07:00
Theodore Dubois
9f4dd9204c
Zero out registers in exec
2019-04-27 16:48:45 -07:00
Theodore Dubois
6d2f84c0af
Fix build on linux
2019-04-21 12:23:56 -07:00
Theodore Dubois
f5360288f3
Implement 32-bit variant of getrlimit
2019-04-21 12:17:38 -07:00
Theodore Dubois
6ec8ec9db5
Rename fd data structs
2019-04-14 17:49:42 -07:00
Theodore Dubois
8b7bde4e9a
Make stdio connect to a real file, /dev/tty1 by default
...
I expect we'll eventually have more than 1.
2019-04-07 22:27:18 -07:00
Theodore Dubois
8c13e11c7e
Implement SIGTTIN
2019-04-07 21:30:55 -07:00
Theodore Dubois
dc490b961b
Stub reboot(2)
2019-04-07 19:28:08 -07:00
Theodore Dubois
9be954bc87
Unbreak fstat on deleted files
2019-03-30 20:07:53 -07:00
Theodore Dubois
22b2b200d3
Stub PRCTL_SET_KEEPCAPS
2019-03-24 18:17:09 -07:00
Theodore Dubois
3a8795907e
Implement pause(2)
2019-03-24 18:16:56 -07:00
Theodore Dubois
ff1df4a53f
Allow getpgid with your own pid
2019-03-24 18:16:42 -07:00
Theodore Dubois
932796916e
Fix unused parameter warning
2019-03-10 23:26:20 -07:00
Saagar Jha
fd51dfb115
Add stub for stime
2019-03-10 06:33:14 -07:00
Theodore Dubois
c2aedb4773
Merge pull request #342 from saagarjha/master
...
Use list_for_each_entry_safe when reparenting children
2019-03-09 21:27:50 -08:00
Saagar Jha
a492a69ecc
Use list_for_each_entry_safe when reparenting children
2019-03-09 21:21:13 -08:00
Theodore Dubois
b9e753dc15
Fix a bizzare typo
2019-03-09 21:05:44 -08:00
Theodore Dubois
ebedb470d0
Implement O_DIRECTORY
...
Fixes #341
2019-03-09 17:08:29 -08:00
Theodore Dubois
d91c26a2e4
Deduplicate iovec structs
2019-03-09 15:31:53 -08:00
Theodore Dubois
3ce1aef431
Fix UAF when exiting a process that was reparented
2019-02-19 06:50:09 -08:00
Theodore Dubois
82ad92d010
Stub renameat2
...
Fixes #312
2019-02-12 14:54:27 -08:00
Theodore Dubois
33fbd2dfd1
Unbreak shebang argument passing
2019-02-09 09:43:16 -08:00
Theodore Dubois
c3217ca7d1
Revolutionize E2BIG
2019-02-07 23:42:30 -08:00
Theodore Dubois
eb6cd79745
Speed up copy-on-write and unmap operations
2019-02-04 20:15:55 -08:00
Theodore Dubois
93bc13d924
Fix tsan warnings
2019-02-04 18:53:42 -08:00
Theodore Dubois
d81c4c4539
Add stub for sync()
2019-02-03 22:44:05 -08:00
Theodore Dubois
8c5c694693
Fix execve with 256 arguments
2019-02-01 17:37:33 -08:00
Theodore Dubois
f784c6db2d
Prevent buffer overflow when debug logging a very long argument list
2019-02-01 17:30:47 -08:00
Theodore Dubois
7e4c9d45cb
Return 0 from wait with WNOHANG if child exists
2019-02-01 10:39:51 -08:00
Theodore Dubois
356cd0230f
Add missing newline on dump_stack output
2019-02-01 09:45:07 -08:00
Theodore Dubois
22b0b0e5f0
Load shared libraries with no interpreter into mmap region
2019-01-31 22:40:03 -08:00
Theodore Dubois
34c377c87d
Improve controlling tty reference counting
2019-01-31 17:57:12 -08:00