diff options
author | wdlkmpx <wdlkmpx@gmail.com> | 2023-06-08 05:23:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 11:23:55 +0100 |
commit | 0433b40d17b83bf56c3e87e05a3ff7bda227f703 (patch) | |
tree | 94fc8a6fd47696a427a9f3081835ab80c750429d /util/mount.fuse.c | |
parent | eb9eb1d8f1165293e56f996698e09d58e644908a (diff) | |
download | libfuse-0433b40d17b83bf56c3e87e05a3ff7bda227f703.tar.gz |
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
Diffstat (limited to 'util/mount.fuse.c')
-rw-r--r-- | util/mount.fuse.c | 4 |
1 files changed, 4 insertions, 0 deletions
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" |