Commit Graph

17 Commits

Author SHA1 Message Date
Eugene Syromiatnikov fb78fe0a7c Rebase to strace 6.7 2024-02-10 04:53:29 +00:00
Eugene Syromiatnikov c32cef440f Fix post-rebase issues
- Add 0175-src-xlat-remove-remnants-of-unnecessary-idx-usage-in.patch
   (v5.18-5-g2bf0696 "src/xlat: remove remnants of unnecessary idx usage in xlookup")
 - Add 0176-strauss-tips-whitespace-and-phrasing-cleanups.patch
   (v5.18-7-ge604d7b "strauss: tips whitespace and phrasing cleanups")
 - Add 0177-strauss-fix-off-by-one-error-in-strauss-array-access.patch
   (v5.18-8-g968789d "strauss: fix off-by-one error in strauss array access")
 - Add 0178-util-add-offs-sanity-check-to-print_clock_t.patch
   (v5.18-9-g6d3e97e "util: add offs sanity check to print_clock_t")
 - Add 0179-secontext-print-context-of-Unix-socket-s-sun_path-fi.patch
   (v5.18-13-g960e78f "secontext: print context of Unix socket's sun_path field")
 - Add 0180-pathtrace-util-do-not-print-deleted-as-part-of-the-p.patch
   (v5.18-18-g676979f "pathtrace, util: do not print " (deleted)" as part of the path")
 - Add 0181-secontext-fix-expected-SELinux-context-check-for-unl.patch
   )v5.18-19-g3f0e534 "secontext: fix expected SELinux context check for unlinked FDs")
 - Add 0182-tests-bpf-fix-sloppy-low-FD-number-usage.patch
   (v5.18-21-g5338636 "tests/bpf: fix sloppy low FD number usage")

* 0175-src-xlat-remove-remnants-of-unnecessary-idx-usage-in.patch: New
patch.
* 0176-strauss-tips-whitespace-and-phrasing-cleanups.patch: Likewise.
* 0177-strauss-fix-off-by-one-error-in-strauss-array-access.patch:
Likewise.
* 0178-util-add-offs-sanity-check-to-print_clock_t.patch: Likewise.
* 0179-secontext-print-context-of-Unix-socket-s-sun_path-fi.patch:
Likewise.
* 0180-pathtrace-util-do-not-print-deleted-as-part-of-the-p.patch:
Likewise.
* 0181-secontext-fix-expected-SELinux-context-check-for-unl.patch:
Likewise.
* 0182-tests-bpf-fix-sloppy-low-FD-number-usage.patch: Likewise.
* strace.spec (Release): Bump to 2.
(Patch175, Patch176, Patch177, Patch178, Patch179, Patch180, Patch181,
Patch182): Add.
(%prep): Apply them.
(%changelog): New record about 5.18-2.

Resolves: #2087693
Resolves: #2103068
Resolves: #2103032
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2022-07-13 13:15:01 +02:00
Eugene Syromiatnikov a9e8e0e54a Rebase to strace 5.18
- Remove 0141-tests-change-sockopt-timestamp-test-to-use-syscall-_.patch
   (v5.13-10-g0211fdc "tests: change sockopt-timestamp test to use syscall(__NR_recvmsg)")
 - Remove 0150-filter_qualify-free-allocated-data-on-the-error-path.patch
   (v5.13-55-g6b2191f "filter_qualify: free allocated data on the error path exit of parse_poke_token")
 - Remove 0151-macros-expand-BIT-macros-add-MASK-macros-add-_SAFE-m.patch
   (v5.13-56-g80dc60c "macros: expand BIT macros, add MASK macros; add *_SAFE macros")
 - Remove 0152-trie-use-BIT-and-MASK-macros.patch
   (v5.13-58-g94ae5c2 "trie: use BIT* and MASK* macros")
 - Remove 0153-tee-rewrite-num_params-access-in-tee_fetch_buf_data.patch
   (v5.13-65-g41b753e "tee: rewrite num_params access in tee_fetch_buf_data")
 - Remove 0154-tests-call-setsockopt-directly-in-sockopt-timestamp.patch
   (v5.14~12 "tests: call setsockopt directly in sockopt-timestamp")
 - Remove 0167-print_ifindex-fix-IFNAME_QUOTED_SZ-definition.patch
   (v5.15~1 "print_ifindex: fix IFNAME_QUOTED_SZ definition")
 - Remove 0168-m4-fix-st_SELINUX-check.patch
   (v5.15~18 "m4: fix st_SELINUX check")
 - Remove 0169-Implement-displaying-of-expected-context-upon-mismat.patch
   (v5.16~31 "Implement displaying of expected context upon mismatch")
 - Remove 0170-tests-linkat-reset-errno-before-SELinux-context-mani.patch
   (v5.17~42 "tests/linkat: reset errno before SELinux context manipulation")
 - Remove 0171-tests-secontext-add-secontext-field-getters.patch
   (v5.17~41 "tests/secontext: add secontext field getters")
 - Remove 0172-tests-linkat-provide-fallback-values-for-secontext-f.patch
   (v5.17~40 "tests/linkat: provide fallback values for secontext fields changes")
 - Remove 0173-tests-secontext-eliminate-separate-secontext_format-.patch
   (v5.17~39 "tests/secontext: eliminate separate secontext_format declaration")
 - Remove 0174-tests-linkat-reset-context-to-the-expected-one-if-a-.patch
   (v5.17~38 "tests/linkat: reset context to the expected one if a mismatch has been detected")

* .gitignore (/strace-5.17.tar.xz): Remove.
(/strace-5.18.tar.xz): New record.
* 0141-tests-change-sockopt-timestamp-test-to-use-syscall-_.patch:
Remove.
* 0150-filter_qualify-free-allocated-data-on-the-error-path.patch:
Likewise.
* 0151-macros-expand-BIT-macros-add-MASK-macros-add-_SAFE-m.patch:
Likewise.
* 0152-trie-use-BIT-and-MASK-macros.patch: Likewise.
* 0153-tee-rewrite-num_params-access-in-tee_fetch_buf_data.patch:
Likewise.
* 0154-tests-call-setsockopt-directly-in-sockopt-timestamp.patch:
Likewise.
* 0167-print_ifindex-fix-IFNAME_QUOTED_SZ-definition.patch: Likewise.
* 0168-m4-fix-st_SELINUX-check.patch: Likewise.
* 0169-Implement-displaying-of-expected-context-upon-mismat.patch:
Likewise.
* 0170-tests-linkat-reset-errno-before-SELinux-context-mani.patch:
Likewise.
* 0171-tests-secontext-add-secontext-field-getters.patch: Likewise.
* 0172-tests-linkat-provide-fallback-values-for-secontext-f.patch:
Likewise.
* 0173-tests-secontext-eliminate-separate-secontext_format-.patch:
Likewise.
* 0174-tests-linkat-reset-context-to-the-expected-one-if-a-.patch:
Likewise.
* sources (strace-5.13.tar.xz): Replace with...
(strace-5.18.tar.xz): ...this version.
* strace.spec (Version): Bump to 5.18.
(Release): Reset to 1.
(Patch141, Patch150, Patch151, Patch152, Patch153, Patch154, Patch167,
Patch168, Patch169, Patch170, Patch171, Patch172, Patch173, Patch174):
Remove.
(%prep): Do not apply them;  adjust man page date generation in accordance
with strace.spec.in changes.
(%changelog): New record about 5.18-1.

Resolves: #2084002
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2022-06-24 16:50:22 +02:00
Eugene Syromiatnikov 4a389010ff Add missing generated/m32/mx32 chunks for --secontext=mismatch option support
* 0168-m4-fix-st_SELINUX-check.patch: Add missing configure changes.
* 0169-Implement-displaying-of-expected-context-upon-mismat.patch: Add
missing tests-m32/gen_tests.in, tests-m32/linkat.c,
tests-m32/options-syntax.test, tests-m32/secontext.c,
tests-m32/secontext.h, tests-mx32/gen_tests.in, tests-mx32/linkat.c,
tests-mx32/options-syntax.test, tests-mx32/secontext.c,
tests-mx32/secontext.h, tests/Makefile.in, tests-m32/Makefile.in,
tests-mx32/Makefile.in, and configure changes, as well as all
tests*/_mismatch.c files.
* 0170-tests-linkat-reset-errno-before-SELinux-context-mani.patch: Add
missing tests-m32/linkat.c and tests-mx32/linkat.c changes.
* 0171-tests-secontext-add-secontext-field-getters.patch: Add missing
tests-m32/secontext.c, tests-m32/secontext.h, tests-mx32/secontext.c,
and tests-mx32/secontext.h changes.
* 0172-tests-linkat-provide-fallback-values-for-secontext-f.patch: Add
missing tests-m32/linkat.c and tests-mx32/linkat.c changes.
* 0173-tests-secontext-eliminate-separate-secontext_format-.patch: Add
missing tests-m32/secontext.c and tests-mx32/secontext.c changes.
* 0174-tests-linkat-reset-context-to-the-expected-one-if-a-.patch: Add
missing tests-m32/linkat.c, tests-m32/secontext.c,
tests-m32/secontext.h, tests-mx32/linkat.c, tests-mx32/secontext.c,
and tests-mx32/secontext.h changes.
* strace.spec (Release): Bump to 7.
(%changelog): Mention the change.

Resolves: #2046264
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2022-02-07 22:37:57 +01:00
Eugene Syromiatnikov e80309331c Add --secontext=mismatch option support
- Add 0168-m4-fix-st_SELINUX-check.patch
   (v5.15~18 "m4: fix st_SELINUX check")
 - Add 0169-Implement-displaying-of-expected-context-upon-mismat.patch
   (v5.16~31 "Implement displaying of expected context upon mismatch")
 - Add 0170-tests-linkat-reset-errno-before-SELinux-context-mani.patch
 - Add 0171-tests-secontext-add-secontext-field-getters.patch
 - Add 0172-tests-linkat-provide-fallback-values-for-secontext-f.patch
 - Add 0173-tests-secontext-eliminate-separate-secontext_format-.patch
 - Add 0174-tests-linkat-reset-context-to-the-expected-one-if-a-.patch

* 0168-m4-fix-st_SELINUX-check.patch: New file.
* 0169-Implement-displaying-of-expected-context-upon-mismat.patch: Ditto.
* 0170-tests-linkat-reset-errno-before-SELinux-context-mani.patch: Ditto.
* 0171-tests-secontext-add-secontext-field-getters.patch: Ditto.
* 0172-tests-linkat-provide-fallback-values-for-secontext-f.patch: Ditto.
* 0173-tests-secontext-eliminate-separate-secontext_format-.patch: Ditto.
* 0174-tests-linkat-reset-context-to-the-expected-one-if-a-.patch: Ditto.
* strace.spec strace.spec (Release): Bump to 6.
(Patch168, Patch169, Patch170, Patch171, Patch172, Patch173, Patch164): New
patches.
(%prep): Apply them.
(%changelog): Mention it.

Resolves: #2038965
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2022-01-19 21:24:28 +01:00
Eugene Syromiatnikov 9afcb3818c Fix incorrect ifname buffer size
- Add 0167-print_ifindex-fix-IFNAME_QUOTED_SZ-definition.patch
   (v5.15~1 "print_ifindex: fix IFNAME_QUOTED_SZ definition")

* 0167-print_ifindex-fix-IFNAME_QUOTED_SZ-definition.patch: New file.
* strace.spec (Release): Bump to 5.
(Patch167): New patch.
(%prep): Apply it.
(%changelog): Mention it.

Resolves: #2028166
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2022-01-06 16:25:30 +01:00
Eugene Syromiatnikov 57e29808e3 strace.spec: remove injected -m64 options from CFLAGS/CPPFLAGS
They are unnecessary and break m32/mx32 runtime compilation.

* strace.spec (%build): Filter out "-m64" out of CFLAGS and CPPFLAGS.
(%changelog): Mention the change.

Resolves: #1996676
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2021-08-23 19:53:29 +02:00
Eugene Syromiatnikov e4f4c62530 Update sockopt-timestamp test
Pick up the upstream commit v5.13-10-g0211fdc "tests: change
sockopt-timestamp test to use syscall(__NR_recvmsg)" and augment it with
an additional fix to actually tests SO_TIMESTAMP* socket options.

* 0141-tests-change-sockopt-timestamp-test-to-use-syscall-_.patch: New
file.
* 0154-tests-call-setsockopt-directly-in-sockopt-timestamp.patch: Likewise.
* strace.spec (Patch141, Patch154): New patches.
(%prep): Apply them
(%changelog): Mention the change.

Resolves: #1996676
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2021-08-23 19:52:49 +02:00
Eugene Syromiatnikov 2f9a189d5e Address some issues reported by covscan
These are of low importance and mostly hypothetical, but, nevertheless.

 - Add 0150-filter_qualify-free-allocated-data-on-the-error-path.patch
   (v5.13-55-g6b2191f "filter_qualify: free allocated data on the error
   path exit of parse_poke_token")
 - Add 0151-macros-expand-BIT-macros-add-MASK-macros-add-_SAFE-m.patch
   (v5.13-56-g80dc60c "macros: expand BIT macros, add MASK macros; add
   *_SAFE macros")
 - Add 0152-trie-use-BIT-and-MASK-macros.patch
   (v5.13-58-g94ae5c2 "trie: use BIT* and MASK* macros")
 - Add 0153-tee-rewrite-num_params-access-in-tee_fetch_buf_data.patch
   (v5.13-65-g41b753e "tee: rewrite num_params access in tee_fetch_buf_data")

Resolves: #1996691
Signed-off-by: Eugene Syromiatnikov <evgsyr@gmail.com>
2021-08-23 19:48:52 +02:00
Mohan Boddu abc8bf2b33 Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-10 00:58:54 +00:00
Eugene Syromiatnikov 97d3c529a3 Rebase to strace 5.13
- Add "tests: disable sockopt-timestamp on new glibc with __TIMESIZE!=64 altogether"
   to work around mangling of SO_TIMESTAMP* setsockopt calls introduced
   in glibc-2.33.9000-707-g13c51549e2077f2f3bf84e8fd0b46d8b0c615912.

* .gitignore (/strace-5.10.tar.xz): Remove.
(/strace-5.13.tar.xz): New record.
* 0141-tests-disable-sockopt-timestamp-on-new-glibc-with-__.patch: New file.
* sources (strace-5.10.tar.xz): Replace with...
(strace-5.13.tar.xz): ...this version.
* strace.spec: Sync with strace.spec.in from the source tree.
(Version): Bump to 5.13.
(Patch141): New patch.
(%prep): Apply it.
(%changelog): New record about 5.13-1.

Resolves: #1925722
Resolves: #1925967
Resolves: #1928305
Resolves: #1973048
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2021-07-22 14:06:23 +02:00
Martin Cermak d17db2f466 gating.yaml: Set up CI gating 2021-06-22 11:40:18 +02:00
Mohan Boddu 9ed39ebff2 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-16 05:45:31 +00:00
DistroBaker f562844ff8 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/strace.git#58f60c2782d6c1d056e2a0f33e97ad2712ac25dc
2020-12-15 11:11:53 +00:00
Troy Dawson 61d534c209 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/strace#50008c5457ab673410b3f7aa066943878307e20f
2020-10-22 08:32:25 -07:00
Troy Dawson ecbbeb16c8 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/strace#8300939a78185e17465967b6d5949d67c854f9ad
2020-10-15 10:02:30 -07:00
Release Configuration Management 0039f23478 New branch setup 2020-10-09 04:50:59 +00:00