From 75f615905629f64f40363161281d640010153d64 Mon Sep 17 00:00:00 2001 From: shtrophic Date: Tue, 12 Nov 2024 21:01:09 +0100 Subject: sandboxing port to linux via landlock --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 600419d..225031a 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS?=-g -Wall -Wextra -pedantic all: snac -snac: snac.o main.o data.o http.o httpd.o webfinger.o \ +snac: snac.o main.o sandbox.o data.o http.o httpd.o webfinger.o \ activitypub.o html.o utils.o format.o upgrade.o mastoapi.o $(CC) $(CFLAGS) -L/usr/local/lib *.o -lcurl -lcrypto $(LDFLAGS) -pthread -o $@ @@ -36,6 +36,8 @@ uninstall: activitypub.o: activitypub.c xs.h xs_json.h xs_curl.h xs_mime.h \ xs_openssl.h xs_regex.h xs_time.h xs_set.h xs_match.h snac.h \ http_codes.h +sandbox.o: sandbox.c xs.h xs_hex.h xs_io.h xs_json.h xs_openssl.h \ + xs_glob.h xs_set.h xs_time.h xs_regex.h xs_match.h xs_unicode.h snac.h data.o: data.c xs.h xs_hex.h xs_io.h xs_json.h xs_openssl.h xs_glob.h \ xs_set.h xs_time.h xs_regex.h xs_match.h xs_unicode.h xs_random.h snac.h \ http_codes.h -- cgit v1.2.3 From e52b4bf39b7236b2a89e34aaf5c54db2e2b285d8 Mon Sep 17 00:00:00 2001 From: shtrophic Date: Thu, 5 Dec 2024 17:24:04 +0100 Subject: import landloc.h --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 225031a..2b89cfa 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,8 @@ activitypub.o: activitypub.c xs.h xs_json.h xs_curl.h xs_mime.h \ xs_openssl.h xs_regex.h xs_time.h xs_set.h xs_match.h snac.h \ http_codes.h sandbox.o: sandbox.c xs.h xs_hex.h xs_io.h xs_json.h xs_openssl.h \ - xs_glob.h xs_set.h xs_time.h xs_regex.h xs_match.h xs_unicode.h snac.h + xs_glob.h xs_set.h xs_time.h xs_regex.h xs_match.h xs_unicode.h \ + landloc.h snac.h data.o: data.c xs.h xs_hex.h xs_io.h xs_json.h xs_openssl.h xs_glob.h \ xs_set.h xs_time.h xs_regex.h xs_match.h xs_unicode.h xs_random.h snac.h \ http_codes.h -- cgit v1.2.3