util/mount.fuse.c: compile with linux headers < 3.5 (#798)
authorwdlkmpx <wdlkmpx@gmail.com>
Thu, 8 Jun 2023 10:23:55 +0000 (05:23 -0500)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 10:23:55 +0000 (11:23 +0100)
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

util/mount.fuse.c

index 04d63b221200d75096623b59a329aee4e04b0c61..b98fb2a655fd793444ac4587d0b5e5d24733bbac 100644 (file)
 #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"