diff --git a/afuse-0.4.1-strcpy-buffer-overflow-fix.patch b/afuse-0.4.1-strcpy-buffer-overflow-fix.patch new file mode 100644 index 0000000..ae46e23 --- /dev/null +++ b/afuse-0.4.1-strcpy-buffer-overflow-fix.patch @@ -0,0 +1,22 @@ +diff -up afuse-0.4.1/src/afuse.c.strcpy-buffer-overflow-fix afuse-0.4.1/src/afuse.c +--- afuse-0.4.1/src/afuse.c.strcpy-buffer-overflow-fix 2013-02-12 21:36:47.000000000 -0500 ++++ afuse-0.4.1/src/afuse.c 2021-02-24 13:31:58.884245692 -0500 +@@ -1853,8 +1853,16 @@ static int afuse_opt_proc(void *data, co + int main(int argc, char *argv[]) + { + struct fuse_args args = FUSE_ARGS_INIT(argc, argv); +- char *temp_dir_name = my_malloc(strlen(TMP_DIR_TEMPLATE)); +- strcpy(temp_dir_name, TMP_DIR_TEMPLATE); ++ size_t buflen = strlen(TMP_DIR_TEMPLATE); ++ // need one more for the null terminator ++ buflen++; ++ char *temp_dir_name = my_malloc(buflen); ++ if (buflen > 0) { ++ strncpy(temp_dir_name, TMP_DIR_TEMPLATE, buflen - 1); ++ temp_dir_name[buflen - 1] = '\0'; ++ } ++ ++ // strcpy(temp_dir_name, TMP_DIR_TEMPLATE); + + if (fuse_opt_parse(&args, &user_options, afuse_opts, afuse_opt_proc) == + -1) diff --git a/afuse.spec b/afuse.spec index 8b4b345..12244d8 100644 --- a/afuse.spec +++ b/afuse.spec @@ -1,25 +1,28 @@ Name: afuse Summary: An automounter implemented with FUSE Version: 0.4.1 -Release: 10%{?dist} -License: GPLv2+ -Group: System Environment/Base +Release: 29%{?dist} +# Automatically converted from old format: GPLv2+ - review is highly recommended. +License: GPL-2.0-or-later Source0: https://afuse.googlecode.com/files/%{name}-%{version}.tar.gz +Patch0: afuse-0.4.1-strcpy-buffer-overflow-fix.patch URL: https://github.com/pcarrier/afuse/ -BuildRequires: gcc +BuildRequires: gcc BuildRequires: fuse-devel +BuildRequires: make %description -Afuse is an automounting file system implemented in user-space using FUSE. -Afuse currently implements the most basic functionality that can be expected -by an automounter; that is it manages a directory of virtual directories. If -one of these virtual directories is accessed and is not already automounted, -afuse will attempt to mount a filesystem onto that directory. If the mount -succeeds the requested access proceeds as normal, otherwise it will fail +Afuse is an automounting file system implemented in user-space using FUSE. +Afuse currently implements the most basic functionality that can be expected +by an automounter; that is it manages a directory of virtual directories. If +one of these virtual directories is accessed and is not already automounted, +afuse will attempt to mount a filesystem onto that directory. If the mount +succeeds the requested access proceeds as normal, otherwise it will fail with an error. %prep %setup -q +%patch -P0 -p1 -b .strcpy-buffer-overflow-fix %build %configure @@ -35,6 +38,64 @@ make DESTDIR=%{buildroot} install %{_bindir}/afuse-avahissh %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 0.4.1-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 0.4.1-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 0.4.1-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Thu Jul 25 2024 Miroslav Suchý - 0.4.1-26 +- convert license to SPDX + +* Wed Jul 17 2024 Fedora Release Engineering - 0.4.1-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.4.1-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.4.1-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 0.4.1-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jan 18 2023 Fedora Release Engineering - 0.4.1-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 0.4.1-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 0.4.1-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 0.4.1-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Feb 24 2021 Tom Callaway - 0.4.1-17 +- fix buffer overflow issue with strcpy + +* Mon Jan 25 2021 Fedora Release Engineering - 0.4.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jul 31 2020 Fedora Release Engineering - 0.4.1-15 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 0.4.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 0.4.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 0.4.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 0.4.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Thu Jul 12 2018 Fedora Release Engineering - 0.4.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild