summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-02 12:35:19 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-02 12:35:19 +0100
commit0c22646e2be4ad4a0eb7998738170a82f2e2739b (patch)
tree4e5bb3f7ce7721f67831edab9c24adbe53834528 /Base/usr
parent4698a10dd164d43c06ace04c21c742a304d0600b (diff)
downloadserenity-0c22646e2be4ad4a0eb7998738170a82f2e2739b.zip
Base: Document EPERM error in module_load(2) and module_unload(2)
Only the superuser can use these system calls.
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man2/module_load.md1
-rw-r--r--Base/usr/share/man/man2/module_unload.md1
2 files changed, 2 insertions, 0 deletions
diff --git a/Base/usr/share/man/man2/module_load.md b/Base/usr/share/man/man2/module_load.md
index 07b596c7ef..8876e7ae9d 100644
--- a/Base/usr/share/man/man2/module_load.md
+++ b/Base/usr/share/man/man2/module_load.md
@@ -22,6 +22,7 @@ returns -1 and sets `errno` to describe the error.
## Errors
+* `EPERM`: The calling process does not have superuser permissions.
* `EFAULT`: `path` pointed to memory that was not accessible for the caller.
* `ENOEXEC`: The specified file could not be parsed as an ELF object.
* `ENOENT`: One or more symbols referred to by the module could not be resolved.
diff --git a/Base/usr/share/man/man2/module_unload.md b/Base/usr/share/man/man2/module_unload.md
index 05e35d6bed..c0672b0523 100644
--- a/Base/usr/share/man/man2/module_unload.md
+++ b/Base/usr/share/man/man2/module_unload.md
@@ -21,6 +21,7 @@ Otherwise, it returns -1 and sets `errno` to describe the error.
## Errors
+* `EPERM`: The calling process does not have superuser permissions.
* `EFAULT`: `path` pointed to memory that was not accessible for the caller.
* `ENOENT`: There was no module loaded with the specified name.