From: wdlkmpx Date: Thu, 8 Jun 2023 10:23:55 +0000 (-0500) Subject: util/mount.fuse.c: compile with linux headers < 3.5 (#798) X-Git-Tag: fuse-3.15.0~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0433b40d17b83bf56c3e87e05a3ff7bda227f703;p=qemu-gpiodev%2Flibfuse.git util/mount.fuse.c: compile with linux headers < 3.5 (#798) PR_SET_NO_NEW_PRIVS was added in linux 3.5 according to prtcl(2) man page https://elixir.bootlin.com/linux/v4.3/source/include/uapi/linux/prctl.h#L174 --- diff --git a/util/mount.fuse.c b/util/mount.fuse.c index 04d63b2..b98fb2a 100644 --- a/util/mount.fuse.c +++ b/util/mount.fuse.c @@ -43,6 +43,10 @@ #define SECBIT_NOROOT_LOCKED (issecure_mask(SECURE_NOROOT_LOCKED)) #endif #endif +/* linux < 3.5 */ +#ifndef PR_SET_NO_NEW_PRIVS +#define PR_SET_NO_NEW_PRIVS 38 +#endif #include "fuse.h"