Linus Groh
17959c1408
Base: Update path in js(1) manpage example
2021-02-20 16:05:20 +01:00
Linus Groh
1002236715
Base: Mention -n option in echo(1) manpage
2021-02-20 16:05:20 +01:00
Linus Groh
4896005fb2
Base: Tweak ddate(1) manpage tagline
2021-02-20 16:05:20 +01:00
Linus Groh
b80b6ffca0
Base: Unify synopsis format in manpages
2021-02-20 16:05:20 +01:00
Andreas Kling
8fd86fe6c9
Base: Do a little copy-editing in Mitigations(7)
2021-02-20 11:37:55 +01:00
Andreas Kling
7e959d7430
Base: Fix a broken commit link in Mitigations(7)
2021-02-20 09:32:40 +01:00
Brian Gianforcaro
0d196d14d2
Base: Document more the mitigations in man7/Mitigations.md
...
Document:
* Unmap After Init
* RELRO
* -fstack-clash-protection
* -fstack-protector / -fstack-protector-strong
2021-02-20 09:01:02 +01:00
Brian Gianforcaro
a5f879ea8c
Base: Add a man page documenting security mitigations
...
Since so much work is being put into mitigations, I thought
it would be nice to track them all in one place. This is the
start of that document.
2021-02-15 15:25:01 +01:00
Andreas Kling
ca1c560161
Base: Don't mark "prot_exec" pledge promise as a SerenityOS extension
...
OpenBSD also has this promise.
2021-02-12 16:24:40 +01:00
Andreas Kling
c94392a1cc
Applications: Remove "Welcome" application
...
This was a cute application for its time, but it's far too jokey and
non-serious for how I'd like this project to treat itself.
2021-02-03 10:20:17 +01:00
Linus Groh
7b50d3cda4
Base: Update keymap(1) manpage
...
- Keymap name/file is now optional
- No root shell required (/bin/keymap is setuid root)
- Add example for getting the current keymap name
2021-02-02 16:53:11 +01:00
Linus Groh
ee41d6e154
Base: Rename some keymaps to use xx-xx format where appropriate
...
- en.json -> en-us.json
- gb.json -> en-gb.json
- ptbr.json -> pt-br.json
- ptpt.json -> pt-pt.json
2021-02-02 16:53:11 +01:00
Liav A
878d353c3d
Documentation: Add a manual page about the new MemoryDevice file
2021-02-01 17:13:23 +01:00
Andreas Kling
6e4e3a7612
Kernel: Remove pledge exception for sys$getsockopt() with SO_PEERCRED
...
We had an exception that allowed SOL_SOCKET + SO_PEERCRED on local
socket to support LibIPC's PID exchange mechanism. This is no longer
needed so let's just remove the exception.
2021-01-31 09:29:27 +01:00
Andreas Kling
90343eeaeb
Revert "Kernel: Return -ENOTDIR for non-directory mount target"
...
This reverts commit b7b09470ca
.
Mounting a file on top of a file is a valid thing we support.
2021-01-30 13:52:12 +01:00
Andreas Kling
d0c5979d96
Kernel: Add "prot_exec" pledge promise and require it for PROT_EXEC
...
This prevents sys$mmap() and sys$mprotect() from creating executable
memory mappings in pledged programs that don't have this promise.
Note that the dynamic loader runs before pledging happens, so it's
unaffected by this.
2021-01-29 18:56:34 +01:00
Linus Groh
dbbc378fb2
Kernel: Return -ENOTBLK for non-block device Ext2FS mount source
...
When mounting an Ext2FS, a block device source is required. All other
filesystem types are unaffected, as most of them ignore the source file
descriptor anyway.
Fixes #5153 .
2021-01-29 08:45:56 +01:00
Linus Groh
b7b09470ca
Kernel: Return -ENOTDIR for non-directory mount target
...
The absence of this check allowed silly things like this:
# touch file
# mount /dev/hda file
2021-01-29 08:45:56 +01:00
Linus Groh
22df4727b1
Base: Update crash(1) man page
...
Update the outdated list of options, mention UserspaceEmulator, update
example shell output.
2021-01-26 11:40:08 +01:00
Ben Wiederhake
b0b8953ec1
Base: Fix syscall/libc manpage sorting
2021-01-23 16:47:09 +01:00
asynts
ea7b7d8ceb
Everywhere: Replace a bundle of dbg with dbgln.
...
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
2021-01-22 22:14:30 +01:00
Linus Groh
421587c15c
Everywhere: Fix typos
2021-01-22 18:41:29 +01:00
AnotherTest
10c3168fa0
Base: Remove irrelevant example from Shell's loop
manpage section
...
Seems like it was copied one too many times.
2021-01-18 08:56:34 +01:00
AnotherTest
ffd74a2c5a
Base: Mention that the if
condition is a command
...
Sorta closes #4991 .
2021-01-18 08:56:34 +01:00
Andreas Kling
bf0719092f
Kernel+Userland: Remove shared buffers (shbufs)
...
All users of this mechanism have been switched to anonymous files and
passing file descriptors with sendfd()/recvfd().
Shbufs got us where we are today, but it's time we say good-bye to them
and welcome a much more idiomatic replacement. :^)
2021-01-17 09:07:32 +01:00
Brendan Coles
aa8cb35b90
TextEditor: Add help documentation
2021-01-16 19:35:08 +01:00
AnotherTest
ddd0c1dd8b
Base: Add manpage entry for history events
2021-01-15 19:13:03 +01:00
Andreas Kling
f03800cee3
Kernel: Add dedicated "ptrace" pledge promise
...
The vast majority of programs don't ever need to use sys$ptrace(),
and it seems like a high-value system call to prevent a compromised
process from using.
This patch moves sys$ptrace() from the "proc" promise to its own,
new "ptrace" promise and updates the affected apps.
2021-01-11 22:32:59 +01:00
Brendan Coles
d0a9954f0e
Userland: Add ddate utility
...
Today is Boomtime, day 7 of Chaos, in the YOLD 3187
2021-01-08 09:42:43 +01:00
Brendan Coles
fb9eb20544
date: Use ArgsParser and add ISO8601 / RFC3339 / RFC5322 output formats
2021-01-07 20:17:44 +01:00
Brendan Coles
81c5b35dce
Base: Add tar man page documentation
2021-01-06 15:40:26 +01:00
Brendan Coles
5c0c4f4b2d
Playground: Support opening gml file by path as command line argument
2021-01-05 17:12:54 +01:00
Brendan Coles
1f03b6ad57
Playground: Add help documentation
2021-01-04 18:50:26 +01:00
Brendan Coles
4d32121293
man: Rename manual section 1 to "User programs"
2021-01-03 17:14:50 +01:00
Brendan Coles
35fe1b39a2
FontEditor: Add help documentation
2021-01-03 13:22:00 +01:00
Brendan Coles
a50583ade1
Base: Add Terminal man page documentation
2021-01-02 11:43:42 +01:00
Andreas Kling
d51bbe1e20
Help: Add a simple index page
...
Let's show something a bit more welcoming than empty white when the user
launches the Help application. :^)
2021-01-02 02:41:16 +01:00
AnotherTest
5e5eb615ec
Shell: Add runtime errors and implement break/continue
...
Such errors are raised when SyntaxError nodes are executed, and are also
used for internal control flow.
The 'break' and 'continue' commands are currently only allowed inside
for loops, and outside function bodies.
This also adds a 'loop' keyword for infinite loops.
2020-12-29 16:55:43 +01:00
Brendan Coles
c006952aeb
Base: Add pape man page documentation
2020-12-29 01:02:01 +01:00
Lenny Maiorani
b2316701a8
Everywhere: void arguments to C functions
...
Problem:
- C functions with no arguments require a single `void` in the argument list.
Solution:
- Put the `void` in the argument list of functions in C header files.
2020-12-26 10:10:27 +01:00
Brendan Coles
b71edba06d
Userland: Add pmap utility
2020-12-24 13:22:24 +01:00
Brendan Coles
39c92dad83
Userland: useradd: Add command line option to set user password
2020-12-21 09:57:26 +01:00
Lenny Maiorani
765936ebae
Everywhere: Switch from (void) to [[maybe_unused]] ( #4473 )
...
Problem:
- `(void)` simply casts the expression to void. This is understood to
indicate that it is ignored, but this is really a compiler trick to
get the compiler to not generate a warning.
Solution:
- Use the `[[maybe_unused]]` attribute to indicate the value is unused.
Note:
- Functions taking a `(void)` argument list have also been changed to
`()` because this is not needed and shows up in the same grep
command.
2020-12-21 00:09:48 +01:00
Brendan Coles
853664bd3c
LibC: stdlib: Add clearenv() function
2020-12-17 19:39:56 +01:00
Brendan Coles
b9d99849ad
Userland: Add beep utility
2020-12-16 17:29:28 +01:00
Brendan Coles
3c9a3a9405
EchoServer: Add a simple echo server
2020-12-16 17:29:12 +01:00
Sergey Bugaev
952c0dc2a0
Userland: Implement find -name clause
...
Closes https://github.com/SerenityOS/serenity/issues/4191
2020-11-28 14:28:58 +01:00
Sergey Bugaev
098070b767
Kernel: Add unveil('b')
...
This is a new "browse" permission that lets you open (and subsequently list
contents of) directories underneath the path, but not regular files or any other
types of files.
2020-11-23 18:37:40 +01:00
Brendan Coles
f8c980a06b
Userland: chroot: Add --userspec
/-u
flag to set uid/gid for chroot
2020-11-14 17:14:30 +01:00
Andreas Kling
b413c7ae6a
ls: Only append file type indicators when -F or --classify is specified
2020-11-11 20:46:06 +01:00