From 0c22646e2be4ad4a0eb7998738170a82f2e2739b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 2 Jan 2020 12:35:19 +0100 Subject: [PATCH] Base: Document EPERM error in module_load(2) and module_unload(2) Only the superuser can use these system calls. --- Base/usr/share/man/man2/module_load.md | 1 + Base/usr/share/man/man2/module_unload.md | 1 + 2 files changed, 2 insertions(+) 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.