Sergey Bugaev
f08aa6324e
Base: Mention that sendfd & recvfd were introduced in plan9port
2020-06-25 15:49:04 +02:00
Andreas Kling
c689be0dbc
Base: Add "sendfd" and "recvfd" promises to pledge(2)
...
And as it turns out, these are not even extensions! :^)
2020-06-25 10:58:37 +02:00
Andreas Kling
55a22b50c9
Base: Fix wording in recvfd(2)
...
recvfd() returns a *non-negative* integer on success. 0 is a valid fd.
2020-06-25 10:58:37 +02:00
Andreas Kling
1a7ccc1569
Base: Add man pages for recvfd(2) and sendfd(2) :^)
2020-06-24 23:08:18 +02:00
Andreas Kling
2188ed54b0
Base: Note that the "setkeymap" pledge promise is an extension
2020-06-19 21:15:25 +02:00
Andreas Kling
0609eefd57
Kernel: Add "setkeymap" pledge promise
2020-06-18 22:19:36 +02:00
Sergey Bugaev
fd985b1f48
Base: Document readlink(1) and readlink(2) :^)
2020-06-17 15:02:03 +02:00
Sergey Bugaev
3847d00727
Kernel+Userland: Support remounting filesystems :^)
...
This makes it possible to change flags of a mount after the fact, with the
caveats outlined in the man page.
2020-05-29 07:53:30 +02:00
Sergey Bugaev
39cde80545
Base: Document MS_RDONLY
...
Also fix a couple of issues with the man pages.
2020-05-29 07:53:30 +02:00
Sergey Bugaev
f746bbda17
Base: Document the sigaction promise
...
Also add a few generic words about pledge().
2020-05-26 14:35:10 +02:00
Andreas Kling
5bfd893292
Kernel+Userland: Add "settime" pledge promise for setting system time
...
We now require the "settime" promise from pledged processes who want to
change the system time.
2020-05-08 22:54:17 +02:00
Sergey Bugaev
983e541584
Base: Fix a typo
2020-05-05 11:07:06 +02:00
Sergey Bugaev
718271c9df
Base: Document unveil(2)
...
Also, escape underscores in chroot_with_mount_flags.
2020-05-04 21:44:50 +02:00
Liav A
23fb985f02
Kernel & Userland: Allow to mount image files formatted with Ext2FS
2020-04-06 15:36:36 +02:00
Andreas Kling
9ae3cced76
Revert "Kernel & Userland: Allow to mount image files formatted with Ext2FS"
...
This reverts commit a60ea79a41
.
Reverting these changes since they broke things.
Fixes #1608 .
2020-04-03 21:28:57 +02:00
Liav A
a60ea79a41
Kernel & Userland: Allow to mount image files formatted with Ext2FS
2020-04-02 12:03:08 +02:00
Andreas Kling
f72e5bbb17
Kernel+LibC: Rename shared buffer syscalls to use a prefix
...
This feels a lot more consistent and Unixy:
create_shared_buffer() => shbuf_create()
share_buffer_with() => shbuf_allow_pid()
share_buffer_globally() => shbuf_allow_all()
get_shared_buffer() => shbuf_get()
release_shared_buffer() => shbuf_release()
seal_shared_buffer() => shbuf_seal()
get_shared_buffer_size() => shbuf_get_size()
Also, "shared_buffer_id" is shortened to "shbuf_id" all around.
2020-02-28 12:55:58 +01:00
Andreas Kling
95504b5850
Base: Note in pledge(2) man page which promises are extensions
...
Also add a little "History" section noting that pledge() is an original
OpenBSD invention and that our implementation differs in many ways.
2020-01-23 10:41:07 +01:00
Sergey Bugaev
3e1ed38d4b
Kernel: Do not return ENOENT for unresolved symbols
...
ENOENT means "no such file or directory", not "no such symbol". Return EINVAL
instead, as we already do in other cases.
2020-01-18 23:51:22 +01:00
Andreas Kling
26a31c7efb
Kernel: Add "accept" pledge promise for accepting incoming connections
...
This patch adds a new "accept" promise that allows you to call accept()
on an already listening socket. This lets programs set up a socket for
for listening and then dropping "inet" and/or "unix" so that only
incoming (and existing) connections are allowed from that point on.
No new outgoing connections or listening server sockets can be created.
In addition to accept() it also allows getsockopt() with SOL_SOCKET
and SO_PEERCRED, which is used to find the PID/UID/GID of the socket
peer. This is used by our IPC library when creating shared buffers that
should only be accessible to a specific peer process.
This allows us to drop "unix" in WindowServer and LookupServer. :^)
It also makes the debugging/introspection RPC sockets in CEventLoop
based programs work again.
2020-01-17 11:19:06 +01:00
Brian Gianforcaro
b553a86048
man: Fix minor inconsistencies in pledge(2) man page
...
- tty promise was listed twice.
- Fix a few typos
2020-01-14 08:00:35 +01:00
Sergey Bugaev
9513f54932
Base: Document new chroot abilities
2020-01-12 20:02:11 +01:00
Andreas Kling
198cd77307
Base: Tweak language in pledge(2) man page
2020-01-12 19:08:42 +01:00
Andreas Kling
f3eb06a46f
Base: Add a man page about pledge(2)
2020-01-12 16:11:12 +01:00
Sergey Bugaev
b37bd28053
Base: Document mount(2) and mount(8)
2020-01-11 18:57:53 +01:00
Andreas Kling
3f9e4cd24e
chroot: Add a little chroot program
...
This program changes the current filesystem root and spawns a shell.
2020-01-10 23:23:20 +01:00
Andreas Kling
0c22646e2b
Base: Document EPERM error in module_load(2) and module_unload(2)
...
Only the superuser can use these system calls.
2020-01-02 12:35:19 +01:00
Conrad Pankoff
033de7efe2
Base: Describe kernel modules, syscalls, and programs
2019-12-24 11:52:01 +01:00
Andreas Kling
3d558f47b0
Docs: Add uname(1) and uname(2) man pages
2019-11-17 19:48:11 +01:00
Sergey Bugaev
8fbcfa934a
Base: Add some "See also" links to the man pages
...
We can do this now that we have link support in LibMarkdown and LibHTML ^)
2019-10-03 08:23:54 +02:00
Andreas Kling
dba74abe93
Base: Fix minor typos in man pages
2019-09-28 23:06:22 +02:00
Andreas Kling
eb18825fce
Base: Add man pages for create_shared_buffer() and share_buffer_with()
2019-09-28 21:16:26 +02:00
Sergey Bugaev
fed96f455d
Base: Write some initial man pages
...
It ain't much, but it's honest work!
2019-09-28 18:29:42 +02:00