Commit Graph

92 Commits

Author SHA1 Message Date
Jeremy Soller 4b5271b52b Remove debug message 2016-12-06 15:27:49 -07:00
Jeremy Soller a46a68b5c7 Use isohybrid to generate a USB stick friendly ISO
Add assertions to verify that grants are unmapped
Fix grant unmapping in exec and exit, thus fixing some crashes without network cards
2016-12-06 14:47:05 -07:00
Jeremy Soller cc9fd700cf Update to make libstd use redox_syscall 2016-11-28 18:14:21 -07:00
Jeremy Soller 2b302bd6ea Implement O_DIRECTORY, switch to open for mkdir 2016-11-25 18:24:38 -07:00
Jeremy Soller bbe2dd0ff4 Implement rfc 4 2016-11-25 12:09:54 -07:00
Jeremy Soller 5ef013eecf Fix warnings, increase size of fs 2016-11-19 20:23:25 -07:00
Jeremy Soller b17444e3ce Allow compiling both livedisk and harddrive 2016-11-19 20:19:41 -07:00
Jeremy Soller 6b084d3ff5 Allow initfs to be written 2016-11-18 08:46:11 -07:00
Jeremy Soller 71fbf2e8f4 Add statvfs 2016-11-18 08:44:03 -07:00
Jeremy Soller a5f95cd2b1 Replace setuid, setgid with setreuid, setregid 2016-11-17 14:16:39 -07:00
Jeremy Soller 1fe0dae848 Cleanup zombies in container - show scheme namespace in context list 2016-11-17 12:24:46 -07:00
Jeremy Soller 3da2ea9d9a More advanced setns syscall 2016-11-16 22:14:02 -07:00
Jeremy Soller c290fd78db Add ability to contain a process in a scheme sandbox 2016-11-16 20:54:38 -07:00
Jeremy Soller 0dd2befe4d Pass through fcntl 2016-11-15 17:09:28 -07:00
Jeremy Soller a9c7a4e773 Update to add chmod 2016-11-15 17:08:14 -07:00
Jeremy Soller 3e5a43d47d Update syscall and rust, add fcntl for permissions 2016-11-15 16:12:51 -07:00
Jeremy Soller 7c35351dc2 Merge branch 'cap2' of https://github.com/Yoric/redox into Yoric-cap2 2016-11-15 14:05:43 -07:00
Jeremy Soller 41f8e349af Pass clone and exec to dup to identify dup location, make exec dup to implement cloexec 2016-11-14 20:55:31 -07:00
Jeremy Soller 7a241b28bf Add sys:exe to get current executable 2016-11-14 20:54:33 -07:00
Jeremy Soller 3469310a19 Add fcntl 2016-11-14 12:15:34 -07:00
Jeremy Soller a7bfe1232a Implement more test arch features 2016-11-14 11:04:31 -07:00
David Teller 53c2c7a332 Converting file handles into a new type FileHandle
Keeping file handles (and pids, and scheme id, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
David Teller 008ca3c207 Converting pids into a new type ContextId
Keeping pid (and file descriptor, and scheme id, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
David Teller 3aa2f2d0c4 Converting scheme ids into a new type SchemeId
Keeping scheme ids (and pids, and file handles, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
Jeremy Soller 99a15e791d Get CPU features 2016-11-07 13:56:02 -07:00
Jeremy Soller 25988d6b71 Add memory information 2016-11-07 12:47:32 -07:00
Jeremy Soller e3f7c9a692 Update scheme documentation 2016-11-04 13:38:40 -06:00
Jeremy Soller 3fc5e52c64 Remove resource_sceme, Fix syscall crate name, add fmap 2016-11-02 19:48:25 -06:00
Jeremy Soller 7952e3ed63 Add null: and zero: 2016-10-31 21:54:56 -06:00
Jeremy Soller ed9c2b9d6c Smp (#23)
* Fire up multiple processors

* Use IPIs to wake up secondary processors

* Much better exception information

* Modifications to show more information on fault

* WIP: Use real libstd

* Add TLS (not complete)

* Add random function, export getpid, cleanup

* Do not spin APs until new context

* Update rust

* Update rust

* Use rd/wrfsbase

* Implement TLS

* Implement compiler builtins and update rust

* Update rust

* Back to Redox libstd

* Update rust
2016-10-31 10:49:00 -06:00
Jeremy Soller 1a1fb1f5e1 Redo networking (#22)
* Rewriting network functions

* Add buffer to dup
Fix non-blocking handling by triggering once on enabling events to read to EOF

* Modifications for UDP API

* Implement TCP client side

* Add active close

* Add DMAR parser

* Implement basic TCP listening. Need to improve the state machine

* Reduce debugging

* Fixes for close procedure

* Updates to fix path processing in libstd
2016-10-26 13:19:56 -06:00
Jeremy Soller 962836aa47 Do not block on IRQ read, add more debugging to RTL8168/9 2016-10-20 15:49:17 -06:00
Jeremy Soller 9c3a06b8f9 Add nonblocking root scheme 2016-10-20 12:31:39 -06:00
Jeremy Soller 71ff7af970 Send multiple events if there are multiple packets 2016-10-14 22:06:43 -06:00
Jeremy Soller 99fee86ef9 Significant improvements for events - switch to event queue in orbital 2016-10-14 20:12:21 -06:00
Jeremy Soller bc72488851 Allow O_NONBLOCK to be passed to pipe 2016-10-14 19:34:00 -06:00
Jeremy Soller f852450610 Add specification to vesad
Fix piping
Fix bug where resources are not closed
Add arpd
Remove question_mark features
2016-10-14 18:22:57 -06:00
Jeremy Soller c294b5b92c Disable orbital by default 2016-10-13 21:19:02 -06:00
Jeremy Soller 2fc605a88d Allow schemes to be listed 2016-10-13 21:13:37 -06:00
Jeremy Soller c484241e1c Add sys scheme to allow inspection of processes. WIP: Signals. 2016-10-13 21:00:51 -06:00
Jeremy Soller d778f0b040 Orbital (#16)
* Port previous ethernet scheme

* Add ipd

* Fix initfs rebuilds, use QEMU user networking addresses in ipd

* Add tcp/udp, netutils, dns, and network config

* Add fsync to network driver

* Add dns, router, subnet by default

* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks

* Add orbital server, WIP

* Add futex

* Add orbutils and orbital

* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad

* Add orbital assets

* Update orbital

* Update to add login manager

* Add blocking primitives, block for most things except waitpid, update orbital

* Wait in waitpid and IRQ, improvements for other waits

* Fevent in root scheme

* WIP: Switch to using fevent

* Reorganize

* Event based e1000d driver

* Superuser-only access to some network schemes, display, and disk

* Superuser root and irq schemes

* Fix orbital
2016-10-13 17:21:42 -06:00
Jeremy Soller 7841f3617a Time (#11)
* WIP: Time syscalls

* Count time from PIT using low tickrate

* Implement realtime

* Implement nanosleep with a tight loop
2016-10-06 20:50:14 -06:00
Jeremy Soller 7a96e6c9be Add pipe2 2016-10-06 18:46:24 -06:00
Jeremy Soller df87992af4 Add sudo command, add effective UID and GID, and groups file 2016-10-05 20:31:59 -06:00
Jeremy Soller 965941cd1c Implement unix permissions 2016-10-05 18:01:05 -06:00
Jeremy Soller 82d2c49543 Add permissions to the filesystem, preliminary permissions to the syscalls 2016-10-05 14:24:08 -06:00
Jeremy Soller fc5a35d22a 64-bit stat size, read entire executable in one go 2016-09-28 20:42:03 -06:00
Jeremy Soller 62d151c9e8 Unlink syscall 2016-09-28 11:18:28 -06:00
Jeremy Soller f79570d42f Fix kernel user scheme fpath 2016-09-28 10:29:17 -06:00
Jeremy Soller bc4f29d3c8 WIP: AHCI drivers and more memory syscalls 2016-09-26 17:00:06 -06:00