smol_http

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8dc4ea4dbffb2aa2e0493965dbe25aa208b344cf
parent 0a82586794a2180e89150e11cd3b9f123fa78c31
Author: Anton Kling <antonkling@protonmail.com>
Date:   Fri, 24 Dec 2021 00:08:31 +0100

small mistakes

Signed-off-by: Anton Kling <anton@kling.gg>

Diffstat:
MREADME | 15+++++++++------
Mhttp.c | 2+-
2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/README b/README @@ -1,4 +1,4 @@ -smol-http +smol_http ========= A simple http server supporting GET requests. @@ -23,20 +23,23 @@ It is also possible to change values using the command line arguments Security -------- -The application is a seteuid binary and shall not be ran as root but instead +The application is a seteuid binary and must not be ran as root but instead should be ran as a low privlege user that the application will later drop privleges to. +smol_http uses unveil and pledge to limit its privleges. Pledge and unveil are +enabled should it be compiled on a OpenBSD or SerenityOS machine. + License ------- This program is licensed under Affero GNU Public License Version 3. This may require you to in ceratin circumstances provide the source code of the -application. Make sure you are following the license. See COPYING for more -information. +application. Make sure you are following the license. This program comes +without any warranty. See COPYING for more information. One conceivable way of complying with the AGPL should no changes be made would be to simply link to this git repo and the commit the code is on. If changes are made then providing a diff file along with the git repo link should be good -enough. Though this is paragraph does not trump anything stated in COPYING nor -add any additional legal restrictions towards you using the software. +enough. Please note that this paragraph does not trump anything stated in +COPYING nor add any additional legal restrictions. diff --git a/http.c b/http.c @@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define PLEDGE(promise, exec) ; #endif -#if HAS_ENVEIL +#if HAS_UNVEIL #define UNVEIL(path, permissions) COND_PERROR_EXP(-1 == unveil(path, permissions), "unveil", exit(1)) #else #define UNVEIL(path, permissions) ;