From 0da2914ac9d9321cca2d402b2c505881e436c725 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Mar 2016 22:27:44 +0100 Subject: pflocal: Add support for access() on pipes bash's '<(' helper creates a pipe and gives /dev/fd/63 to the program, and gcc would then run access() on it. So we actually need to support at least some FS operations on pipes. * pflocal/fs.c: New file. * pflocal/mig-mutate.h (FILE_INTRAN, FILE_INTRAN_PAYLOAD, FILE_DESTRUCTOR, FILE_IMPORTS): New macros. * pflocal/sserver.c: Include "fs_S.h". (sock_demuxer): Call fs_server_routine. * pflocal/Makefile (SRCS): Add fs.c. (MIGSTUBS): Add fsServer.o. --- pflocal/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pflocal/Makefile') diff --git a/pflocal/Makefile b/pflocal/Makefile index 0d9341f1..3a079753 100644 --- a/pflocal/Makefile +++ b/pflocal/Makefile @@ -21,9 +21,9 @@ makemode := server target = pflocal -SRCS = connq.c io.c pflocal.c socket.c pf.c sock.c sserver.c +SRCS = connq.c io.c fs.c pflocal.c socket.c pf.c sock.c sserver.c -MIGSTUBS = ioServer.o socketServer.o +MIGSTUBS = ioServer.o fsServer.o socketServer.o OBJS = $(SRCS:.c=.o) $(MIGSTUBS) HURDLIBS = pipe trivfs iohelp fshelp ports ihash shouldbeinlibc LDLIBS = -lpthread -- cgit v1.2.3