Sync from SUSE:ALP:Source:Standard:1.0 fuse revision 4eb491c928af07995407884c211ef395

This commit is contained in:
Adrian Schröter 2024-10-14 14:17:21 +02:00
commit 5119b1e140
13 changed files with 1017 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

22
aarch64-build-fix.patch Normal file
View File

@ -0,0 +1,22 @@
---
include/fuse_kernel.h | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
Index: fuse-2.9.9/include/fuse_kernel.h
===================================================================
--- fuse-2.9.9.orig/include/fuse_kernel.h
+++ fuse-2.9.9/include/fuse_kernel.h
@@ -88,12 +88,7 @@
#ifndef _LINUX_FUSE_H
#define _LINUX_FUSE_H
-#include <sys/types.h>
-#define __u64 uint64_t
-#define __s64 int64_t
-#define __u32 uint32_t
-#define __s32 int32_t
-#define __u16 uint16_t
+#include <linux/types.h>
/*
* Version negotiation:

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libfuse2

32
closefrom.patch Normal file
View File

@ -0,0 +1,32 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2021-08-23 14:47:30.341142824 +0200
References: https://bugzilla.opensuse.org/show_bug.cgi?id=1189086
References: https://bugzilla.redhat.com/show_bug.cgi?id=1984776
glibc-2.34 added closefrom. Rename fuse functions to work around the collision.
---
util/ulockmgr_server.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: fuse-2.9.9/util/ulockmgr_server.c
===================================================================
--- fuse-2.9.9.orig/util/ulockmgr_server.c
+++ fuse-2.9.9/util/ulockmgr_server.c
@@ -124,7 +124,7 @@ static int receive_message(int sock, voi
return res;
}
-static int closefrom(int minfd)
+static int fuse_closefrom(int minfd)
{
DIR *dir = opendir("/proc/self/fd");
if (dir) {
@@ -384,7 +384,7 @@ int main(int argc, char *argv[])
dup2(nullfd, 1);
}
close(3);
- closefrom(5);
+ fuse_closefrom(5);
while (1) {
char c;
int sock;

BIN
fuse-2.9.9.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

19
fuse-2.9.9.tar.gz.asc Normal file
View File

@ -0,0 +1,19 @@
-----BEGIN PGP SIGNATURE-----
iQK3BAABCgChFiEE7TF5GyxcFhOvOIuK0RP8rDxOWZ8FAlwvYjFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVE
MzE3OTFCMkM1QzE2MTNBRjM4OEI4QUQxMTNGQ0FDM0M0RTU5OUYjGmh0dHA6Ly93
d3cucmF0aC5vcmcvZ3BncG9saWN5Lmh0bWwACgkQ0RP8rDxOWZ9bBRAA0Dmj3OCQ
tNahjel06TQz0XOGSey0lcDIkWDWVo5IJksHoJ5+BAPNEU5xaVY8nXTSwi6Zh2a2
zlbtmEVejhKIOKmjtoNULmRyf/Zc+LM8w2G942oW4XBeW9FVExlZTzdE01A0YkjR
vzzLJhGe6aMzq/2wM3VXFz3OX1FsleUo1yRfiSyMVnAq5wt6esEtni/vPmSkDKC+
/BzlkWLRDDwbJcuLHFjR0q6q3FNB85Bo7wNOh3VtvjnCwj3W6X+3iuNIsVAHmsSA
HOmxFxocYyFdSZe2foFXHsnoDb7GI4fLc5kt53LcZyvwDaBnAR9wWjOXjYVJTvO5
EkmKFCtsP6cUorfeEluyWB0uTsTuMlj23Qcl0a1SQjJIzVYHHzfz9iG9lf4HrC0F
pdlnOrUWO98KA1OfyMm7OQ0fbVUbrN+NtS8e9xUGY+D6Zo8tCQY2FjWR07eT4ojw
cUZgagkI5dQeL3hQQaGm3oR3oGFtXgDLfHN7qRUK1Xzc9GRjQlHAQmahwjLDQ+27
eWK71viGkasAQw8DwZ6hQRAsKLiLHE8Lh67u/4MSKyuex6caeNLV8YnQO9oJBos+
ziXcXPDXLkQPO35wDUucprZM80iyX5esDsXar3iljISMUGpeDZe2rSQKPv4a+liv
IxxZaqYu/NO5UL80+eH5ndOkEPrqGfJUeks=
=1K4L
-----END PGP SIGNATURE-----

32
fuse-install-fix.diff Normal file
View File

@ -0,0 +1,32 @@
--- fuse-2.9.2.orig/util/Makefile.am 2012-07-19 07:33:49.000000000 -0500
+++ fuse-2.9.2/util/Makefile.am 2013-03-04 09:23:23.000000000 -0600
@@ -20,14 +20,6 @@
ulockmgr_server_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -D_REENTRANT
ulockmgr_server_LDFLAGS = -pthread
-install-exec-hook:
- -chmod u+s $(DESTDIR)$(bindir)/fusermount
- @if test ! -e $(DESTDIR)/dev/fuse; then \
- $(MKDIR_P) $(DESTDIR)/dev; \
- echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
- mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true; \
- fi
-
EXTRA_DIST = udev.rules init_script
MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
@@ -39,14 +31,8 @@
$(INSTALL_PROGRAM) $(builddir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
$(MKDIR_P) $(DESTDIR)$(INIT_D_PATH)
$(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse
- @if test -x /usr/sbin/update-rc.d; then \
- echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true"; \
- /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true; \
- fi
install-data-local:
- $(MKDIR_P) $(DESTDIR)$(UDEV_RULES_PATH)
- $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
uninstall-local:
rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse

554
fuse.changes Normal file
View File

@ -0,0 +1,554 @@
-------------------------------------------------------------------
Tue Dec 27 10:36:59 UTC 2022 - Ludwig Nussel <lnussel@suse.com>
- Replace transitional %usrmerged macro with regular version check (boo#1206798)
-------------------------------------------------------------------
Mon Aug 23 12:48:31 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Add closefrom.patch [boo#1189086]
-------------------------------------------------------------------
Tue Dec 15 11:00:03 UTC 2020 - Martin Liška <mliska@suse.cz>
- Enable LTO (boo#1133101) and use -ffat-lto-objects.
-------------------------------------------------------------------
Fri Nov 20 10:10:06 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Modernize some older specfile constructs. Rediff patch4 as -p1.
- Update descriptions.
-------------------------------------------------------------------
Tue Nov 10 10:52:32 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
- prepare usrmerge (boo#1029961)
-------------------------------------------------------------------
Sun Aug 16 15:15:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 2.9.9:
* Added OpenAFS to whitelist (so users can now mount FUSE filesystems on mountpoints within OpenAFS filesystems).
* Added a test of seekdir to test_syscalls.
* Fixed readdir bug when non-zero offsets are given to filler and the
filesystem client, after reading a whole directory, re-reads it from a
non-zero offset e. g. by calling seekdir followed by readdir.
-------------------------------------------------------------------
Wed Apr 24 08:59:55 UTC 2019 - Martin Liška <mliska@suse.cz>
- Move definition of _lto_cflags into %build.
-------------------------------------------------------------------
Tue Apr 23 12:37:32 UTC 2019 - Martin Liška <mliska@suse.cz>
- Disable LTO (boo#1133101).
-------------------------------------------------------------------
Tue Mar 19 11:28:53 UTC 2019 - Martin Liška <mliska@suse.cz>
- Use %make_build in order to provide verbose output.
-------------------------------------------------------------------
Sat Jul 28 22:36:01 UTC 2018 - avindra@opensuse.org
- fuse 2.9.8
* SECURITY UPDATE: In previous versions of libfuse it was possible
to for unprivileged users to specify the allow_other option even
when this was forbidden in /etc/fuse.conf. The vulnerability is
present only on systems where SELinux is active (including in
permissive mode).
* libfuse no longer segfaults when fuse_interrupted() is called
outside the event loop.
* The fusermount binary has been hardened in several ways to
reduce potential attack surface. Most importantly, mountpoints
and mount options must now match a hard-coded whitelist. It is
expected that this whitelist covers all regular use-cases.
- cleanup with spec-cleaner
- update wiki urls to new location
-------------------------------------------------------------------
Mon Oct 16 19:28:32 UTC 2017 - admorgan@morgancomputers.net
- Fix download link in fuse.spec
-------------------------------------------------------------------
Fri Oct 6 15:57:44 UTC 2017 - admorgan@morgancomputers.net
- fuse 2.9.7
* Shared-object version has now been bumped correctly.
* Added SELinux support.
* Fixed race-condition when session is terminated right after
starting a FUSE file system.
-------------------------------------------------------------------
Mon Jul 31 10:25:45 UTC 2017 - fcrozat@suse.com
- Ensure trusted group is available on Tumbleweed.
-------------------------------------------------------------------
Fri Jan 22 12:04:12 UTC 2016 - astieger@suse.com
- fuse 2.9.5:
* fix warning in mount.c:receive_fd().
* fix possible memory leak.
* new upstream project and source URL
* add new maintainer keyring and verify source signature
-------------------------------------------------------------------
Fri May 22 09:38:26 UTC 2015 - mszeredi@suse.cz
- Update to version 2.9.4
- fix exec environment for mount and umount (bsc#931452,
CVE-2015-3202)
- properly restore the default signal handler
- fix directory file handle passed to ioctl() method.
- fix for uids/gids larger than 2147483647
- initialize stat buffer passed to ->getattr() and ->fgetattr()
-------------------------------------------------------------------
Wed Dec 10 21:08:32 UTC 2014 - bwiedemann@suse.com
- include commented default fuse.conf (bnc#908292)
-------------------------------------------------------------------
Wed Jul 24 17:53:36 CEST 2013 - mszeredi@suse.cz
- Update to version 2.9.3
- Bug fixes
- Remove fuse-gnu_source.patch (fixed upstream)
-------------------------------------------------------------------
Sun Jun 16 07:40:22 UTC 2013 - dmueller@suse.com
- add aarch64-build-fix.patch
-------------------------------------------------------------------
Wed Mar 27 06:59:31 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Tue Mar 26 16:27:22 UTC 2013 - dmueller@suse.com
- fix build for SLE_11
-------------------------------------------------------------------
Fri Mar 8 13:36:12 UTC 2013 - idonmez@suse.com
- Use autoreconf directly instead of makeconf.sh
-------------------------------------------------------------------
Mon Mar 4 15:04:08 UTC 2013 - archie@dellroad.org
- Update to version 2.9.2
- Add support for fallocate() (kernel >= 3.5)
- Bug fixes
- Remove fix-pthread-in-fuse.pc.patch; now included in upstream
- Don't patch generated files such as configure and Makefile.in;
instead, regenerate them using makeconf.sh from SVN repository
-------------------------------------------------------------------
Sat Feb 2 18:50:24 UTC 2013 - coolo@suse.com
- update license to new format
-------------------------------------------------------------------
Mon Jul 2 07:38:49 UTC 2012 - coolo@suse.com
- avoid autoreconf to avoid breaking on updates of auto* tools
-------------------------------------------------------------------
Sat May 26 16:14:26 UTC 2012 - jengelh@inai.de
- Remove redundant tags/sections from specfile
- Parallel build with %_smp_mflags
- Trim list of FUSE fses from description (it's literally endless)
and text inappropraite for subpackages
-------------------------------------------------------------------
Wed May 16 17:52:11 CEST 2012 - mszeredi@suse.cz
- Fix -pthread in fuse.pc [bnc#761117]
-------------------------------------------------------------------
Thu Apr 26 19:31:47 UTC 2012 - rschweikert@suse.com
- place binaries in /usr tree (UsrMerge project)
-------------------------------------------------------------------
Sun Apr 22 10:31:21 UTC 2012 - puzel@suse.com
- update to 2.9.0
- Add "zero copy" support for kernel 2.6.35 or newer
- Make maximum background requests tunable on kernel 2.6.32 or
newer
- Require --no-canonicalize in (u)mount (util-linux version 2.18
or newer) to fix security problems with fusermount
- Use dynamically sized hash tables in high level library
- Memory use of filesystem daemon can shrink more easily
- Add "auto_unmount" option
- Add "remember" option
- Add man pages for fusermount, mount.fuse and ulockmgr_server
- API changes:
- Introduce "store" and "retrieve" for accessing kernel
buffers on kernel 2.6.36 or newer
- Introduce abstract buffer for zero copy operations
- Allow path calculation to be omitted on certain operations
- Allow batching forget requests
- Add "flock" method
- Add support for ioctl on directories
- Add delete notification
- drop fuse-pc-remove-libdir-from-Libs.diff (upstream)
-------------------------------------------------------------------
Wed Jan 25 19:57:36 CET 2012 - mszeredi@suse.cz
- use %set_permissions instead of %run_permissions in specfile
-------------------------------------------------------------------
Wed Jan 25 19:11:44 CET 2012 - mszeredi@suse.cz
- compile /bin/fusermount as a position independent executable
[bnc#743155]
-------------------------------------------------------------------
Wed Jan 25 18:32:49 CET 2012 - mszeredi@suse.cz
- update to 2.8.7
* fix ambiguous symbol version for fuse_chan_new
* prevent calling ulockmgr_server with illegal arguments
* fix hang in wait_on_path()
-------------------------------------------------------------------
Thu Nov 3 13:15:39 CET 2011 - mszeredi@suse.cz
- handle case of failure to allocate request [bnc#723616]
-------------------------------------------------------------------
Sat Oct 1 05:39:08 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to make the spec file more reliable
-------------------------------------------------------------------
Mon Sep 26 21:50:37 CEST 2011 - mhrusecky@suse.cz
- enabling libulockmgr
-------------------------------------------------------------------
Mon Aug 29 20:48:16 UTC 2011 - crrodriguez@opensuse.org
- Must define _GNU_SOURCE to get clone() system call.
-------------------------------------------------------------------
Mon Mar 21 16:43:59 UTC 2011 - coolo@novell.com
- licenses package is about to die
-------------------------------------------------------------------
Thu Feb 17 17:51:15 CET 2011 - mszeredi@suse.cz
- In case of failure to add to /etc/mtab don't umount. [bnc#668820]
[CVE-2011-0541]
-------------------------------------------------------------------
Tue Nov 16 16:16:04 CET 2010 - mszeredi@suse.cz
- Fix symlink attack for mount and umount [bnc#651598]
-------------------------------------------------------------------
Wed Oct 27 15:34:16 CEST 2010 - mszeredi@suse.cz
- Remove /etc/init.d/boot.fuse [bnc#648843]
-------------------------------------------------------------------
Tue Sep 28 11:52:41 CEST 2010 - mszeredi@suse.cz
- update to 2.8.5
* fix option escaping for fusermount [bnc#641480]
-------------------------------------------------------------------
Wed Apr 28 09:26:51 CEST 2010 - mszeredi@suse.cz
- keep examples and internal docs in devel package (from jnweiger)
-------------------------------------------------------------------
Mon Apr 26 15:39:52 CEST 2010 - mszeredi@suse.cz
- update to 2.8.4
* fix checking for symlinks in umount from /tmp
* fix umounting if /tmp is a symlink
-------------------------------------------------------------------
Tue Feb 2 13:08:09 CET 2010 - mszeredi@suse.cz
- update to 2.8.3
* fix unmounting with util-linux version >= 2.17
-------------------------------------------------------------------
Wed Jan 27 10:06:13 CET 2010 - mszeredi@suse.cz
- update to 2.8.2
* fix unmount race (CVE-2009-3297)
* fix deadlock with "audit" subsystem on mount (also requires
util-linux-ng version >=2.17)
-------------------------------------------------------------------
Wed Jan 6 15:14:33 CET 2010 - jengelh@medozas.de
- package baselibs.conf
-------------------------------------------------------------------
Wed Dec 16 12:11:13 UTC 2009 - kruber@zib.de
- update to 2.8.1:
* fix missing versioned symbol fuse_get_context@FUSE_2.2
-------------------------------------------------------------------
Sun Sep 6 22:30:08 UTC 2009 - pascal.bleser@opensuse.org
- update to 2.8.0:
* more scalable directory tree locking
* atomic open(O_TRUNC) support
* support big write requests on kernels 2.6.26 and newer
* out-of-tree fuse module removed
* better NFS exporting support
* new ioctl and poll requests
* new CUSE (Character Device in Userspace) interface
* allow umask processing in userspace
* added cache invalidation notifications
* bugfixes and small improvements
-------------------------------------------------------------------
Thu Jul 30 10:30:41 CEST 2009 - aj@suse.de
- Fix exclude usage.
-------------------------------------------------------------------
Wed Apr 22 01:25:59 CEST 2009 - crrodriguez@suse.de
- remove static libraries and "la" files
- spec file cleanup
- update to version 2.7.4
* Fix missing pthread_mutex_destroy in error path of
fuse_lib_opendir(). Patch by Szabolcs Szakacsits
-------------------------------------------------------------------
Fri Apr 3 14:33:13 CEST 2009 - coolo@suse.de
- adding baselibs.conf to build -xxbit
-------------------------------------------------------------------
Mon Dec 1 18:26:59 CET 2008 - ro@suse.de
- check for /.buildenv before stop_on_removal
-------------------------------------------------------------------
Mon Dec 17 16:38:26 CET 2007 - mszeredi@suse.de
- Update to version 2.7.2
* Fix a symbol versioning mistake
* Fix a deadlock on termination, if umount is synchronous
* Fix umounting if /etc/mtab is a symlink
-------------------------------------------------------------------
Fri Nov 23 13:47:38 CET 2007 - mszeredi@suse.de
- Update to version 2.7.1
* Add missing context initialization in fuse_fs_chmod()
* Fix a fuse_req leak in do_forget()
* Work around hotplug issue
* Reset args->argc in fuse_opt_free_args()
-------------------------------------------------------------------
Sun Sep 2 07:40:59 CEST 2007 - aj@suse.de
- Fix building.
- Rename rpmlintrc to fuse.rpmlintrc and add it as source.
-------------------------------------------------------------------
Fri Aug 31 20:01:07 CEST 2007 - mszeredi@suse.de
- fix location of COPYING files (#306681)
-------------------------------------------------------------------
Fri Aug 10 13:41:37 CEST 2007 - bk@suse.de
- branch off libfuse2 to avoid having to start fuse on boot (#285101)
- Add "Supplements: filesystem(fuse)" in case someone looks for fuse
- libulockmgr and ulockmgr_server are separate from fuse (#285101)
-------------------------------------------------------------------
Fri Jul 13 18:19:50 CEST 2007 - mszeredi@suse.de
- conditionally add udev rule if building with 10.2 or earlier
-------------------------------------------------------------------
Thu Jul 5 19:16:52 CEST 2007 - bk@suse.de
- update to new major release 2.7.0:
* Support for stacking filesystem modules
* New module for converting filename character sets
* "setuid=USER" allows to do "su - USER" for the filesystem
* fs subtype has been added to libfuse and the mount commands
* Several problems have been addressed, e.g. mount.fuse is rewritten
the multithreaded loop uses a semaphore instead of signals,
improved locking and O_APPEND is fixed in direct IO mode
-------------------------------------------------------------------
Tue Jul 3 12:44:37 CEST 2007 - bk@suse.de
- move libs and programs to /lib and /bin, recommended for ntfs-3g
-------------------------------------------------------------------
Mon Jun 18 16:52:34 CEST 2007 - dmueller@suse.de
- fix boot.fuse to start after boot.localfs
-------------------------------------------------------------------
Fri May 4 10:55:05 CEST 2007 - mszeredi@suse.de
- fix build error
-------------------------------------------------------------------
Wed May 2 14:02:28 CEST 2007 - mszeredi@suse.de
- updated to version 2.6.5
* mount.fuse script fixes
* fix exiting on umount for filesystems which block SIGHUP
- udev rule for fuse device is now in udev package
- don't remove fuse module in the init-script
- use 'fusectl' as the filesystem source
-------------------------------------------------------------------
Fri Feb 9 01:08:24 CET 2007 - ro@suse.de
- change fillup_and_insserv to insserv_force_if_yast in post-script
(there is no sysconfig file involved here)
-------------------------------------------------------------------
Wed Feb 7 16:43:36 CET 2007 - mszeredi@suse.cz
- added init script which loads the fuse module and mounts the control
filesystem (#223663)
-------------------------------------------------------------------
Mon Feb 5 18:25:50 CET 2007 - mszeredi@suse.cz
- updated to version 2.6.3:
* fix regression causing an abort during heavy filesystem use
* update author's email
-------------------------------------------------------------------
Tue Jan 30 15:56:22 CET 2007 - tiwai@suse.de
- updated to version 2.6.2:
* fix 64bit compile problems
* fix fuse_teardown problem
* fix unaligned access in file descriptor in libfuse
* fix detection of fuseblk
* fix use after free in fuse_flush
* fix compatible API for opts == NULL
-------------------------------------------------------------------
Thu Jan 18 16:39:47 CET 2007 - tiwai@suse.de
- fix compat API (#233870)
-------------------------------------------------------------------
Tue Dec 19 16:39:13 CET 2006 - tiwai@suse.de
- updated to version 2.6.1:
* improved fusermout help texts
* fix automake problems
-------------------------------------------------------------------
Mon Oct 23 00:03:16 CEST 2006 - cthiel@suse.de
- update to version 2.6.0
* Improved read characteristics (asynchronous reads)
* Support for aborting filesystem connection
* POSIX file locking support
* Request interruption support
* Building module for Linux kernels earlier than 2.6.9 not supported
* Allow block device based filesystems to support swap files
* Several bugs fixed, including a rare system hang on SMP
-------------------------------------------------------------------
Mon Aug 21 09:22:17 CEST 2006 - cthiel@suse.de
- fix requirements of -devel package, to require fuse by version (#200496)
-------------------------------------------------------------------
Tue Aug 8 18:20:43 CEST 2006 - tiwai@suse.de
- fixed a syntax error in udev rules.
-------------------------------------------------------------------
Mon Jul 3 17:11:20 CEST 2006 - cthiel@suse.de
- fix build
-------------------------------------------------------------------
Mon May 15 13:01:24 CEST 2006 - tiwai@suse.de
- updated to version 2.5.3.
* Add missing rwlock initialization
* Fix negative entry handling.
* Fix race between RELEASE and UNLINK, which might leave
.fuse_hidden* files around
* libfuse: fix use-after-free bug in interruptred reply_entry().
-------------------------------------------------------------------
Fri Feb 3 14:01:19 CET 2006 - cthiel@suse.de
- update to version 2.5.2
* lib: if "fsname=" option was given, pass it to fusermount
* fuse_opt: fix memory leak in handling "--" option
* fuse_opt.h: fix incompatibility with C++ compilers by renaming
'template' structure member to 'templ'
* fuse.h: fix compatibility bugs.
-------------------------------------------------------------------
Wed Jan 25 21:36:04 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Sat Jan 14 19:58:20 CET 2006 - cthiel@suse.de
- update to version 2.5.0
-------------------------------------------------------------------
Wed Nov 23 14:22:41 CET 2005 - cthiel@suse.de
- update to version 2.4.2
- changed permission of /usr/bin/fusermount to 4755
-------------------------------------------------------------------
Fri Oct 28 23:19:26 CEST 2005 - cthiel@suse.de
- readded -fno-strict-aliasing
-------------------------------------------------------------------
Fri Oct 28 14:11:00 CEST 2005 - cthiel@suse.de
- update to version 2.4.1
-------------------------------------------------------------------
Fri Sep 30 18:47:08 CEST 2005 - tiwai@suse.de
- fixed CFLAGS to pass RPM_OPT_FLAGS.
- added -fno-strict-aliasing.
-------------------------------------------------------------------
Wed Jun 8 19:52:10 CEST 2005 - tiwai@suse.de
- updated to version 2.3.0.
-------------------------------------------------------------------
Tue Feb 3 15:51:37 CET 2004 - adrian@suse.de
- initial package of version 1.1-pre2

18
fuse.conf Normal file
View File

@ -0,0 +1,18 @@
# The file /etc/fuse.conf allows for the following parameters:
#
# user_allow_other - Using the allow_other mount option works fine as root, in
# order to have it work as user you need user_allow_other in /etc/fuse.conf as
# well. (This option allows users to use the allow_other option.) You need
# allow_other if you want users other than the owner to access a mounted fuse.
# This option must appear on a line by itself. There is no value, just the
# presence of the option.
#user_allow_other
# mount_max = n - this option sets the maximum number of mounts.
# Currently (2014) it must be typed exactly as shown
# (with a single space before and after the equals sign).
#mount_max = 1000

77
fuse.keyring Normal file
View File

@ -0,0 +1,77 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.5+
Comment: Hostname: keys2.kfwebs.net
mQINBFMiefoBEADYa1ZUqR/3YDqaf2UGpd9kNfKAY3TAR+xTcTYBKWTkJEy4cX2bccSEOf7E
f1w0va+WgBwDUAllf+x21UFOWnPnqwb8LJxyg8dN3CRNWf9Z2vRXNOkvnAd0hYnA6xsbSLDQ
V0wpJOTH1zyZejMMWLpZh5SKRxaJAtpsfZ32qppzJhn4jJb0v2fC+wJVkUy4mLe6yaHCrrHw
lwldyzlwPBNwFfk31mVFYO+COSTGq+RXU2kCdujfw648IBYltdWI3D1vTilJd0gt2EDmOqQi
zfFJLlBTdLieJdrXzL4WWuzvJpC1YadkmqMqnVkpcDxbxw0bK7G0faLigwWkshggaSns0vnp
D05jQyMJUYdLwB9lh6u0B9APcCxmPLhgHDdgdlZ+1JHMdfY0gIMSIAP2zkQu4iaTv5Tuc5a0
3dXE7G6GwZ+A5YsrovQCot2FY653A0swmAsaCy3A2OcVFXXgmZGLYh/06XA/+WhMSLVIaQ6e
YTFgG9k8iopU6zw5p2vav1rOuirymLe3b/VNZhk6nOpewwLp+5c2Ylmj6zEHegFQ9pbmlFF/
kubk9wGuS941G0/iLPyf3ePPhQ6hMY9L+7moW+Zlbqqg2XXa9S8C2rMwELDegpawYJyMIt25
xAb94BGMkU/SxclzZ62ktGkYrA0ekiHkB6zzt8uhHrGDxWEucQARAQABtCFOaWtvbGF1cyB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icJcJ
s8LuTAFMtZqL7kbWok7wdRYmO8mez/FvNTRSo85TlUzR3Fc4xZndBJ3P9vDkvWpKPfuXpiBf
CuX9TFYSVolnnl2col5xay+f7P0XVpxLkO+fCw==
=gOOn
-----END PGP PUBLIC KEY BLOCK-----

15
fuse.rpmlintrc Normal file
View File

@ -0,0 +1,15 @@
# This line is mandatory to access the configuration functions
from Config import *
# rpmlint message:
# Your package contains a /etc/init.d scrip")
# a start dependency that is not behind $remote_fs, while it apparently
# needs $remote_fs dependency due to files being packaged under /usr.
#
# /usr/bin/fusermount is only needed when normal users want to mount,
# otherwise everything else is outside of /usr, so it can be localfs:
#
addFilter("fuse non-remote_fs-dependency")
# Everything moved away, so it got small but the docs are not huge:
addFilter("fuse package-with-huge-docs")

208
fuse.spec Normal file
View File

@ -0,0 +1,208 @@
#
# spec file for package fuse
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: fuse
Version: 2.9.9
Release: 0
Summary: Reference implementation of the "Filesystem in Userspace"
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/Filesystems
URL: https://github.com/libfuse/libfuse
Source: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz
Source2: fuse.rpmlintrc
Source3: baselibs.conf
Source4: fuse.conf
Source5: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz.asc
Source6: fuse.keyring
Patch1: fuse-install-fix.diff
Patch2: fusermount-compile-as-pie.patch
Patch3: aarch64-build-fix.patch
Patch4: closefrom.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
Requires(post): permissions
Requires(pre): group(trusted)
Requires: util-linux >= 2.18
Supplements: filesystem(fuse)
%description
FUSE (Filesystem in Userspace) is an interface by the Linux kernel
for userspace programs to export a filesystem to the kernel.
This package contains helper programs for using FUSE mounts.
FUSE file systems are typically implemented as a standalone
applications in their own right and are packaged separately.
%package -n libulockmgr1
Summary: Library of FUSE, the User space File System for GNU/Linux and BSD
Group: System/Filesystems
%description -n libulockmgr1
With FUSE, a user space program can export a file system through the
kernel-default (Linux kernel).
%package -n libfuse2
Summary: Library of FUSE, the User space File System for GNU/Linux and BSD
Group: System/Filesystems
%description -n libfuse2
FUSE (Filesystem in Userspace) is an interface by the Linux kernel
for userspace programs to export a filesystem to the kernel.
A FUSE file system is typically implemented as a standalone
application that links with libfuse. libfuse provides a C API over
the raw kernel interface.
%package doc
Summary: Document package for FUSE (userspace filesystem)
Group: Development/Languages/C and C++
%description doc
This package contains the documentation for FUSE (userspace filesystem).
%package devel
Summary: Development package for FUSE (userspace filesystem) modules
Group: Development/Languages/C and C++
Requires: fuse = %{version}
Requires: fuse-doc = %{version}
Requires: glibc-devel
Requires: libfuse2 = %{version}
Requires: libulockmgr1 = %{version}
%description devel
This package contains all include files, libraries and configuration
files needed to develop programs that use the fuse (FUSE) library to
implement file systems in user space.
With fuse-devel, users can compile and install other user space file
systems.
%package devel-static
Summary: Development package for FUSE (userspace filesystem) modules
Group: Development/Languages/C and C++
Requires: fuse-devel = %{version}
Provides: fuse-devel:%{_libdir}/libfuse.a
%description devel-static
This package contains the static library variants of libfuse.
%prep
%autosetup -p1
%build
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
export CFLAGS="%{optflags} -g -fno-strict-aliasing"
export MOUNT_FUSE_PATH=%{_sbindir}
autoreconf -fi
%configure \
--with-pkgconfigdir=%{_libdir}/pkgconfig \
--enable-lib \
--enable-util \
--enable-example
%make_build
%install
%make_install
rm -rf %{buildroot}/%{_sysconfdir}/init.d
install -m644 -D %{SOURCE4} %{buildroot}/%{_sysconfdir}/fuse.conf
# Needed for OpenSUSE buildservice
%if 0%{?suse_version} <= 1020
install -m644 -D util/udev.rules %{buildroot}/%{_sysconfdir}/udev/rules.d/99-fuse.rules
%endif
find %{buildroot} -type f -name "*.la" -delete -print
# not needed for fuse, might reappar in separate package:
rm -f %{buildroot}/%{_libdir}/libulockmgr.a
%if 0%{?suse_version} < 1550
mkdir %{buildroot}/sbin
mkdir %{buildroot}/%{_lib}
ln -s -v %{_sbindir}/mount.fuse %{buildroot}/sbin
pushd %{buildroot}/%{_libdir}
for libname in $(ls *.so.*);do
ln -s -v /%{_libdir}/$libname %{buildroot}/%{_lib}
done
popd
%endif
(cd example && make clean)
rm -rf example/.deps example/Makefile.am example/Makefile.in
rm -rf doc/Makefile.am doc/Makefile.in doc/Makefile
%post
%if 0%{?suse_version} >= 1140
%set_permissions %{_bindir}/fusermount
%else
%run_permissions
%endif
%verifyscript
%verify_permissions -e %{_bindir}/fusermount
%post -n libfuse2 -p /sbin/ldconfig
%postun -n libfuse2 -p /sbin/ldconfig
%post -n libulockmgr1 -p /sbin/ldconfig
%postun -n libulockmgr1 -p /sbin/ldconfig
%files
%license COPYING*
%doc AUTHORS ChangeLog NEWS README*
%if 0%{?suse_version} <= 1020
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
%{_sysconfdir}/udev/rules.d/99-fuse.rules
%endif
%verify(not mode) %attr(4750,root,trusted) %{_bindir}/fusermount
%if 0%{?suse_version} < 1550
/sbin/mount.fuse
%endif
%{_sbindir}/mount.fuse
%config %{_sysconfdir}/fuse.conf
%{_bindir}/ulockmgr_server
%{_mandir}/man1/fusermount.1%{?ext_man}
%{_mandir}/man1/ulockmgr_server.1%{?ext_man}
%{_mandir}/man8/mount.fuse.8%{?ext_man}
%files -n libfuse2
%if 0%{?suse_version} < 1550
/%{_lib}/libfuse.so.2*
%endif
%{_libdir}/libfuse.so.2*
%files -n libulockmgr1
%if 0%{?suse_version} < 1550
/%{_lib}/libulockmgr.so.*
%endif
%{_libdir}/libulockmgr.so.*
%files doc
%doc example doc
%files devel
%{_libdir}/libfuse.so
%{_libdir}/libulockmgr.so
%{_includedir}/fuse.h
%{_includedir}/fuse
%{_libdir}/pkgconfig/*.pc
%{_includedir}/ulockmgr.h
%files devel-static
%{_libdir}/libfuse.a
%changelog

View File

@ -0,0 +1,13 @@
Index: fuse-2.9.0/util/Makefile.am
===================================================================
--- fuse-2.9.0.orig/util/Makefile.am 2012-07-02 09:27:27.057828998 +0200
+++ fuse-2.9.0/util/Makefile.am 2012-07-02 09:28:25.920068349 +0200
@@ -10,6 +10,8 @@ noinst_PROGRAMS = mount.fuse
# copying it over.
fusermount_SOURCES = fusermount.c mount_util.c
fusermount_CPPFLAGS = -I$(top_srcdir)/lib
+fusermount_CFLAGS = -fPIE $(AM_CFLAGS)
+fusermount_LDFLAGS = -pie $(AM_LDFLAGS)
BUILT_SOURCES = mount_util.c
mount_util.c: $(top_srcdir)/lib/mount_util.c
@cp $(top_srcdir)/lib/mount_util.c .