瀏覽代碼

squashfs4: backport an upstream change to fix the file mode check to allow setuid/setgid binaries (thx, ermo) - fixes #7653

SVN-Revision: 22334
Felix Fietkau 15 年之前
父節點
當前提交
67b4181c8a
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      tools/squashfs4/patches/140-mode_check.patch

+ 11 - 0
tools/squashfs4/patches/140-mode_check.patch

@@ -0,0 +1,11 @@
+--- a/squashfs-tools/pseudo.c
++++ b/squashfs-tools/pseudo.c
+@@ -374,7 +374,7 @@
+ 	}
+ 
+ 
+-	if(mode > 0777) {
++	if(mode > 07777) {
+ 		ERROR("Mode %o out of range\n", mode);
+ 		goto error;
+ 	}