Commit Graph

295 Commits

Author SHA256 Message Date
Dr. Werner Fink
dec5a56b7f Test libseccomp
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=205
2020-01-08 11:06:16 +00:00
Dr. Werner Fink
dd1cee3902 Disable sandboxing on aarch64, second try
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=204
2020-01-07 11:41:37 +00:00
Dr. Werner Fink
7e4c4e7979 Disable sandboxing on aarch64
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=203
2020-01-07 11:24:32 +00:00
Dominique Leuenberger
2ed79f0b7b Accepting request 758529 from Base:System
- Require pkgconfig(libseccomp) to enable the sandboxing feature

- Update to file version 5.38
  * Always accept -S (no sandbox) even if we don't support sandboxing
  * More syscalls elided for sandboxiing
  * For ELF dynamic means having an interpreter not just PT_DYNAMIC
  * Check for large ELF session header offset
  * When saving and restoring a locale, keep the locale name in our
    own storage.
  * Add a flag to disable CSV file detection.
  * Don't pass NULL/0 to memset to appease sanitizers.
  * Avoid spurious prints when looks for extensions or apple strings
    in fsmagic.
  * Add builtin decompressors for xz and and bzip.
  * Add a limit for the number of CDF elements.
  * More checks for overflow in CDF.
- Removed patches fixed upstream
  * CVE-2019-18218-46a8443f.patch
  * file-5.15-clear-invalid.patch
  * file-upstream.patch
- Modify patches
  * file-5.12-zip.dif
  * file-5.16-ocloexec.patch
  * file-5.17-option.dif
  * file-5.19-biorad.dif
  * file-5.19-printf.dif
  * file-5.19-zip2.0.dif
  * file-5.23-endian.patch
  * file-5.24-nitpick.dif
  * file-5.28-btrfs-image.dif

OBS-URL: https://build.opensuse.org/request/show/758529
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=116
2020-01-01 13:57:15 +00:00
Dr. Werner Fink
c6e4a49edc sandboxing
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=201
2019-12-20 14:04:56 +00:00
Dr. Werner Fink
6318f0130a sandboxing
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=200
2019-12-20 14:01:13 +00:00
Dr. Werner Fink
c24ff0645f Update to file-5.38
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=199
2019-12-17 09:59:56 +00:00
Dominique Leuenberger
0fc547001b Accepting request 743447 from Base:System
OBS-URL: https://build.opensuse.org/request/show/743447
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=115
2019-11-01 14:12:43 +00:00
bd24978757 Accepting request 741492 from home:StefanBruens:branches:Base:System
Untangle Rings:0 build loop to some degree

- Replace find invocation in self test by recursive bash glob,
  drop findutils BuildRequires.

OBS-URL: https://build.opensuse.org/request/show/741492
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=197
2019-10-28 10:06:08 +00:00
Dominique Leuenberger
9117906ad2 Accepting request 741869 from Base:System
- Add temporary patch CVE-2019-18218-46a8443f.patch from upstream
  to fix bsc#1154661 -- heap-based buffer overflow in cdf_read_property_info in cdf.c

- Let python-magic build with latest rpm 

- Let python-magic build with latest rpm

- Correct version of file which is now 5.37

OBS-URL: https://build.opensuse.org/request/show/741869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=114
2019-10-25 16:39:12 +00:00
Dr. Werner Fink
c321155d1f Add temporary patch CVE-2019-18218-46a8443f.patch
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=195
2019-10-22 13:26:36 +00:00
Dr. Werner Fink
85135feb03 Let python-magic build again
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=194
2019-10-14 13:42:39 +00:00
Dominique Leuenberger
7dd657ad52 Accepting request 710542 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/710542
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=113
2019-07-13 11:33:29 +00:00
Dominique Leuenberger
fc6d98365b Accepting request 706185 from Base:System
- Update to file version 5.37
  * Make sure that continuation separators are printed
    with -k within softmagic
  * Change SIGPIPE saving and restoring during compression to use
    sigaction(2) instead of signal(3) and cache it. (Denys Vlasenko)
  * Cache stat(2) calls more to reduce number of calls (Denys Vlasenko)
  * PR/77: Handle --mime-type and -k correctly.
  * Switch decompression code to use vfork() because
    tools like rpmdiff and rpmbuild call libmagic
    with large process footprints (Denys Vlasenko)
  * PR/75: --enable-zlib, did not work.
  * Improve regex efficiency (Michael Schroeder) by:
    1. Prefixing regex searches with regular search
       for keywords where possible
    2. Using memmem(3) where available
- Modify the patches
  * file-5.12-zip.dif
  * file-5.16-ocloexec.patch
  * file-5.17-option.dif
  * file-5.19-biorad.dif
  * file-5.19-zip2.0.dif
  * file-5.22-elf.dif
  * file-5.24-nitpick.dif
  * file-5.28-btrfs-image.dif
  * file-secure_getenv.patch
- Modify and rename patch file-5.36.dif which becomes file-5.37.dif

- - Correct version of file which is now 5.37

OBS-URL: https://build.opensuse.org/request/show/706185
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=112
2019-06-12 11:02:13 +00:00
Dr. Werner Fink
bbc9fa23fe Add temporary patch file-upstream.patch
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=191
2019-06-11 10:43:44 +00:00
Dr. Werner Fink
4f08707c18 Always the forgotten part is python-magic
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=190
2019-05-29 06:09:41 +00:00
Dr. Werner Fink
ab5943019a Update to file version 5.37
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=189
2019-05-27 09:37:06 +00:00
Dominique Leuenberger
806291bed9 Accepting request 677928 from Base:System
- Update to file version 5.36 (bsc#1126117, bsc#1126118, bsc#1126119,
  and bsc#1126121 which is CVE-2019-8904, CVE-2019-8905, CVE-2019-8906,
  and CVE-2019-8907)
  * Fix cast to use cast macros
  * Add UCS-32 builtin detection (PR/61) reported by tmc
  * Fix stack read (PR/62) and write (PR/64) stack overflows
    reported by spinpx
- Modify the patches
  * file-5.12-zip.dif
  * file-5.15-clear-invalid.patch
  * file-5.16-ocloexec.patch
  * file-5.19-printf.dif
  * file-5.19-zip2.0.dif
  * file-5.22-elf.dif
  * file-5.23-endian.patch
  * file-5.28-btrfs-image.dif
- Modify and rename patch file-5.35.dif which becomes file-5.36.dif

- Correct version of file which is now 5.36

OBS-URL: https://build.opensuse.org/request/show/677928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=111
2019-02-26 21:13:20 +00:00
Dr. Werner Fink
3467dee9fb Update to file-5.36 ad bug fix and security release
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=187
2019-02-21 07:19:34 +00:00
Dominique Leuenberger
69637c7c92 Accepting request 644483 from Base:System
- Update to file version 5.35
  * Add FreeBSD ELF core file support (John Baldwin)
  * PR/30: Allow all parameter values to be set (don't treat 0 specially)
  * handle default annotations on the softmagic match instead at the
    end.
  * PR/23: Recognize JSON files
  * PR/18: file --mime-encoding should not print mime-type
- Modify the patches
  * file-5.16-ocloexec.patch
  * file-5.17-option.dif
  * file-5.19-biorad.dif
  * file-5.19-printf.dif
  * file-5.22-elf.dif
  * file-5.23-endian.patch
  * file-5.24-nitpick.dif
  * file-secure_getenv.patch
- Modify and rename patch file-5.34.dif which becomes file-5.35.dif

- Update new signing key file as well

- Update to file version 5.34
  * Add Quad indirect offsets
  * Enable parsing of ELF dynamic sections to handle PIE better
- Remove upstream patch file-a642587a9c.patch
- Rename patch file-5.33.dif which now becomes file-5.34.dif

- Correct version of file which is now 5.35

OBS-URL: https://build.opensuse.org/request/show/644483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=110
2018-10-29 13:13:59 +00:00
Dr. Werner Fink
82db481f4d .
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=185
2018-10-25 06:11:02 +00:00
Dr. Werner Fink
c8540fe22b Update to file-5.35
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=184
2018-10-22 08:10:34 +00:00
Dr. Werner Fink
650ab2cba7 Let python tree install
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=183
2018-10-15 14:02:58 +00:00
Dr. Werner Fink
c99810fb57 Update to file 5.34
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=182
2018-10-15 11:20:52 +00:00
Dr. Werner Fink
8ac4c4d262 Update to file 5.34
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=181
2018-10-15 11:15:31 +00:00
Dominique Leuenberger
7fa69310a0 Accepting request 628958 from Base:System
OBS-URL: https://build.opensuse.org/request/show/628958
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=109
2018-08-28 07:18:46 +00:00
c104b87405 Accepting request 628611 from home:AndreasStieger:branches:Base:System
- add upstream signing key and verify source signature

OBS-URL: https://build.opensuse.org/request/show/628611
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=179
2018-08-13 11:42:53 +00:00
Dominique Leuenberger
2af6858111 Accepting request 616455 from Base:System
- Update to file version 5.33
  * extend the support for ${x?:} expansions for magic descriptions
  * add support for ${x?:} in mime types to handle
    pie binaries.
  * add support for negative offsets (offsets from the end of file)
  * close the file on error when writing magic (Steve Grubb)
  * seccomp support (Paul Moore)
- Rename patch file-5.32.dif to file-5.33.dif
- Remove patch file-5.32-ncurses-6.1.patch now upstream
- Modify and port patches
  * file-5.12-zip.dif
  * file-5.16-ocloexec.patch
  * file-5.17-option.dif
  * file-5.19-biorad.dif
  * file-5.19-printf.dif
  * file-5.19-zip2.0.dif
  * file-5.22-elf.dif
  * file-5.24-nitpick.dif
- Add patch file-a642587a9c.patch for bsc#1096974, bsc#1096984, and
  CVE-2018-10360 -- Avoid reading past the end of buffer

- Correct version of file which is now 5.33

OBS-URL: https://build.opensuse.org/request/show/616455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=108
2018-07-14 18:13:42 +00:00
Dr. Werner Fink
18445367fa adopt version in python part
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=177
2018-06-13 07:51:12 +00:00
Dr. Werner Fink
d5d2bcf2a4 Update to 5.33 and bug fix for bsc#1096974 and bsc#1096984
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=176
2018-06-12 15:26:41 +00:00
Yuchen Lin
e36553d55d Accepting request 593898 from Base:System
- Correct line break in patch file-5.24-nitpick.dif (boo#1087924)

OBS-URL: https://build.opensuse.org/request/show/593898
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=107
2018-04-10 07:51:58 +00:00
Dr. Werner Fink
7185987841 Add missing line break in help text
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=174
2018-04-06 07:09:50 +00:00
Dominique Leuenberger
c403132b89 Accepting request 580535 from Base:System
OBS-URL: https://build.opensuse.org/request/show/580535
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=106
2018-03-07 09:28:09 +00:00
d1f47ef0ed Accepting request 580084 from home:favogt:licensetag
Use %license (boo#1082318). Please forward to SLE, if possible

OBS-URL: https://build.opensuse.org/request/show/580084
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=172
2018-02-27 09:47:58 +00:00
Dominique Leuenberger
ad1e768341 Accepting request 568099 from Base:System
- Add patch file-5.32-ncurses-6.1.patch to support extend magic
  format for new ncurses 6.1

OBS-URL: https://build.opensuse.org/request/show/568099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=105
2018-01-26 12:34:01 +00:00
Dr. Werner Fink
6f51244bc4 make it at least apply patches
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=170
2018-01-22 10:49:22 +00:00
Dr. Werner Fink
a04509cf28 Add new magic format for next ncurses 6.1 compiled format
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=169
2018-01-22 10:41:22 +00:00
Dr. Werner Fink
dd1d991171 Add new magic format for next ncurses 6.1 compiled format
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=168
2018-01-22 10:40:51 +00:00
Dominique Leuenberger
59c3d8f04b Accepting request 533649 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/533649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=104
2017-10-25 15:43:22 +00:00
2e12840ffb Accepting request 532487 from home:jengelh:branches:Base:System
- Update package summaries. Replace old RPM constructs.
- Remove --with-pic which is useless with --disable-static.
- Edit pre_checkin.sh to remove dead python3 file.

OBS-URL: https://build.opensuse.org/request/show/532487
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=166
2017-10-12 11:26:15 +00:00
Dominique Leuenberger
7a01d3c31b Accepting request 532411 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/532411
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=103
2017-10-09 17:36:07 +00:00
69d839ca78 Accepting request 528985 from devel:languages:python:singlespec-staging
- remove python build instructions from master spec file, move completely
  into python-magic.spec

- converted to singlespec, dropped separate python3-magic spec file
- moved python build instructions from file.spec to python-magic.spec
- do not need to build the binary parts in order to build the python part
- removed inlining of %defines from file.spec because it is unreliable
  in presence of parametrized macros
- added provides: python-file-magic to comply with the python package
  naming policy

OBS-URL: https://build.opensuse.org/request/show/528985
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=164
2017-10-07 10:37:20 +00:00
Dominique Leuenberger
014f9ced78 Accepting request 528198 from Base:System
- Update to file version 5.32
  * Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski)
  * Fix always true condition (Thomas Jarosch)
  * pickier parsing of numeric values in magic files.
  * PR/615 add magic_getflags()
- This release fix the bug bsc#1056838 for CVE-2017-1000249
- Remove patch file-5.31-fix-tga.dif as now upstream
- Rename patch file-5.31.dif which now becomes file-5.32.dif
- Modify the patches
  * file-5.16-ocloexec.patch
  * file-5.19-biorad.dif
  * file-5.19-printf.dif
  * file-5.23-endian.patch
  * file-5.28-btrfs-image.dif

OBS-URL: https://build.opensuse.org/request/show/528198
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=102
2017-09-25 11:48:48 +00:00
Dr. Werner Fink
17761f57c8 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=162
2017-09-16 17:10:30 +00:00
Dr. Werner Fink
30a3dc4af4 Update to file 5.32 to fix bug bsc#1056838
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=161
2017-09-13 10:43:50 +00:00
Dominique Leuenberger
63876e5cc2 Accepting request 501318 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/501318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=101
2017-06-12 13:10:36 +00:00
c299195196 Accepting request 501203 from home:coolo:branches:openSUSE:Factory
- add file-5.31-fix-tga.dif upstream commited after I reported
  a failure in File::Unpack's test suite

OBS-URL: https://build.opensuse.org/request/show/501203
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=159
2017-06-06 08:38:22 +00:00
Dominique Leuenberger
4a0d4374fc Accepting request 497934 from Base:System
- Update to file version 5.31
  * remove trailing spaces from magic files
  * refactor is_tar
  * better bounds checks for cdf
- Remove patches now upstream
  * file-5.30-150735.patch
  * file-5.30-3c60e5.patch
- Rename patch file-5.30.dif which becomes file-5.31.dif
- Modify the patches
  * file-4.24-autoconf.dif
  * file-5.14-tex.dif
  * file-5.16-ocloexec.patch
  * file-5.19-printf.dif
  * file-5.23-endian.patch

OBS-URL: https://build.opensuse.org/request/show/497934
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=100
2017-06-02 08:30:03 +00:00
Dr. Werner Fink
de34e10adf .
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=157
2017-05-24 11:14:26 +00:00
Dominique Leuenberger
134ac6b293 Accepting request 461937 from Base:System
- Update to file version 5.30
  * If we exceeded the offset in a search return no match
    (Christoph Biedl)
  * Be more lenient on corrupt CDF files (Christoph Biedl)
  * pacify ubsan sign extension (oss-fuzz/524)
  * off by one in cdf parsing (PR/593)
  * report debugging sections in elf (PR/591)
  * Allow @@@ in extensions
  * Add missing overflow check in der magic (Jonas Wagner)
- Mofify the patches
    file-5.16-ocloexec.patch
    file-5.19-biorad.dif
    file-5.28-btrfs-image.dif
- Rename patch file-5.29.dif to file-5.30.dif
- Add upstream patches
    file-5.30-150735.patch
    file-5.30-3c60e5.patch

OBS-URL: https://build.opensuse.org/request/show/461937
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=99
2017-03-07 23:42:01 +00:00