mirror of
https://git.yoctoproject.org/meta-security
synced 2026-04-20 11:29:37 +00:00
ecryptfs-utils: fix musl build
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -16,6 +16,7 @@ SRC_URI = "\
|
||||
file://ecryptfs-utils-CVE-2016-6224.patch \
|
||||
file://0001-avoid-race-condition.patch \
|
||||
file://ecryptfs.service \
|
||||
file://define_musl_sword_type.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "83513228984f671930752c3518cac6fd"
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
Index: ecryptfs-utils-111/src/utils/mount.ecryptfs_private.c
|
||||
===================================================================
|
||||
--- ecryptfs-utils-111.orig/src/utils/mount.ecryptfs_private.c
|
||||
+++ ecryptfs-utils-111/src/utils/mount.ecryptfs_private.c
|
||||
@@ -45,6 +45,10 @@
|
||||
#include <values.h>
|
||||
#include "../include/ecryptfs.h"
|
||||
|
||||
+#ifndef __SWORD_TYPE
|
||||
+typedef __typeof__( ((struct statfs *)0)->f_type ) __SWORD_TYPE;
|
||||
+#endif
|
||||
+
|
||||
/* Perhaps a future version of this program will allow these to be configurable
|
||||
* by the system administrator (or user?) at run time. For now, these are set
|
||||
* to reasonable values to reduce the burden of input validation.
|
||||
Reference in New Issue
Block a user