Truly independent web browser
Go to file
Sergey Bugaev fdb71cdf8f Kernel: Support read-only filesystem mounts
This adds support for MS_RDONLY, a mount flag that tells the kernel to disallow
any attempts to write to the newly mounted filesystem. As this flag is
per-mount, and different mounts of the same filesystems (such as in case of bind
mounts) can have different mutability settings, you have to go though a custody
to find out if the filesystem is mounted read-only, instead of just asking the
filesystem itself whether it's inherently read-only.

This also adds a lot of checks we were previously missing; and moves some of
them to happen after more specific checks (such as regular permission checks).

One outstanding hole in this system is sys$mprotect(PROT_WRITE), as there's no
way we can know if the original file description this region has been mounted
from had been opened through a readonly mount point. Currently, we always allow
such sys$mprotect() calls to succeed, which effectively allows anyone to
circumvent the effect of MS_RDONLY. We should solve this one way or another.
2020-05-29 07:53:30 +02:00
.github Meta: Add GitHub Sponsors to funding options 2019-11-02 23:32:34 +01:00
AK AK: Add StringView::split_view() taking a StringView 2020-05-28 11:01:08 +02:00
Applications LibWeb: Rename Web::HtmlView => Web::PageView 2020-05-28 18:22:54 +02:00
Base Base: Add manpage for xargs 2020-05-28 11:01:08 +02:00
Demos Eyes: Resize the window based on the number of eyes 2020-05-25 19:06:06 +02:00
DevTools LibWeb: Rename Web::HtmlView => Web::PageView 2020-05-28 18:22:54 +02:00
Documentation Meta: Move INSTALL.md into Documentation/ 2020-05-28 13:09:43 +02:00
Games Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
Kernel Kernel: Support read-only filesystem mounts 2020-05-29 07:53:30 +02:00
Libraries Kernel: Support read-only filesystem mounts 2020-05-29 07:53:30 +02:00
MenuApplets LibGUI: Get rid of Model::ColumnMetadata and always use auto-sizing 2020-05-21 19:55:44 +02:00
Meta Build: Use a separate byproduct name for the GRUB disk image (#2424) 2020-05-28 10:08:38 +02:00
Ports Ports: Make bash link again 2020-05-18 11:29:08 +02:00
Services ProtocolServer: Forget downloads after they are stopped 2020-05-27 18:30:29 +02:00
Shell Shell: Save the history when quitting via the exit builtin 2020-05-27 11:13:02 +02:00
Tests LibC: strtod accuracy tests no longer need to skip 2020-05-11 10:52:24 +02:00
Toolchain Build: Add Dockerfile 2020-05-22 01:19:15 +02:00
Userland Userland: Fix displaying mount source 2020-05-29 07:53:30 +02:00
.clang-format Meta: Update .clang-format to not indent nested namespaces 2020-03-14 10:10:21 +01:00
.gitignore Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
.travis.yml Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
CMakeLists.txt Build: Use a separate byproduct name for the GRUB disk image (#2424) 2020-05-28 10:08:38 +02:00
CODE_OF_CONDUCT.md Meta: Move code of conduct (lol) to a separate file 2019-10-23 10:05:06 +02:00
CONTRIBUTING.md Meta: Update C++ standard to C++20 in CONTRIBUTING.md 2020-05-27 11:22:14 +02:00
LICENSE Meta: Tweak license in celebration of 10'000 commits :^) 2020-05-28 19:07:31 +02:00
ReadMe.md Meta: Add github link to the man pages from ReadMe.md 2020-05-26 13:14:37 +02:00

SerenityOS

Graphical Unix-like operating system for x86 computers.

Travis CI status

About

SerenityOS is a love letter to '90s user interfaces with a custom Unix-like core. It flatters with sincerity by stealing beautiful ideas from various other systems.

Roughly speaking, the goal is a marriage between the aesthetic of late-1990s productivity software and the power-user accessibility of late-2000s *nix. This is a system by us, for us, based on the things we like.

I (Andreas) regularly post raw hacking sessions and demos on my YouTube channel.

Sometimes I write about the system on my github.io blog.

I'm also on Patreon and GitHub Sponsors if you would like to show some support that way.

Screenshot

Screenshot as of 1133aca

Kernel features

  • x86 (32-bit) kernel with pre-emptive multi-threading
  • Hardware protections (SMEP, SMAP, UMIP, NX, WP, TSD, ...)
  • IPv4 stack with ARP, TCP, UDP and ICMP protocols
  • ext2 filesystem
  • POSIX signals
  • Purgeable memory
  • /proc filesystem
  • Pseudoterminals (with /dev/pts filesystem)
  • Filesystem notifications
  • CPU and memory profiling
  • SoundBlaster 16 driver
  • VMWare/QEMU mouse integration

System services

  • Launch/session daemon (SystemServer)
  • Compositing window server (WindowServer)
  • Text console manager (TTYServer)
  • DNS client (LookupServer)
  • Network protocols server (ProtocolServer)
  • Software-mixing sound daemon (AudioServer)
  • Desktop notifications (NotificationServer)
  • HTTP server (WebServer)
  • Telnet server (TelnetServer)
  • DHCP client (DHCPClient)

Libraries

  • C++ templates and containers (AK)
  • Event loop and utilities (LibCore)
  • 2D graphics library (LibGfx)
  • GUI toolkit (LibGUI)
  • Cross-process communication library (LibIPC)
  • HTML/CSS engine (LibWeb)
  • JavaScript engine (LibJS)
  • Markdown (LibMarkdown)
  • Audio (LibAudio)
  • PCI database (LibPCIDB)
  • Terminal emulation (LibVT)
  • Out-of-process network protocol I/O (LibProtocol)
  • Mathematical functions (LibM)
  • ELF file handing (LibELF)
  • POSIX threading (LibPthread)
  • Higher-level threading (LibThread)
  • Transport Layer Security (LibTLS)
  • HTTP and HTTPS (LibHTTP)

Userland features

  • Unix-like libc and userland
  • Shell with pipes and I/O redirection
  • On-line help system (both terminal and GUI variants)
  • Web browser (Browser)
  • C++ IDE (HackStudio)
  • IRC client
  • Desktop synthesizer (Piano)
  • Various desktop apps & games
  • Color themes

How do I read the documentation?

Man pages are browsable outside of SerenityOS under Base/usr/share/man.

When running SerenityOS you can use man for the terminal interface, or help for the GUI interface.

How do I build and run this?

See the SerenityOS build instructions

Before opening an issue

Please see the issue policy.

Wanna chat?

Come hang out with us in #serenityos on the Freenode IRC network.

Author

Contributors

(And many more!) The people listed above have landed more than 100 commits in the project. :^)

License

SerenityOS is licensed under a 2-clause BSD license.