diff options
author | Christopher Larson <chris_larson@mentor.com> | 2019-11-25 21:41:10 +0500 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-01-04 15:46:27 -0800 |
commit | 5000352cd5da3656ed60821f84a4f14dd971fb7a (patch) | |
tree | cfcdc64593efb79b45949f3ba5653824b2504395 | |
parent | ea65bb60901ad53bafdd384eec61e8e99913899f (diff) | |
download | meta-security-5000352cd5da3656ed60821f84a4f14dd971fb7a.tar.gz |
checksecurity: use more portable find args
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/checksecurity/checksecurity_2.0.15.bb | 3 | ||||
-rw-r--r-- | recipes-security/checksecurity/files/check-setuid-use-more-portable-find-args.patch | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/recipes-security/checksecurity/checksecurity_2.0.15.bb b/recipes-security/checksecurity/checksecurity_2.0.15.bb index a961691..030bf25 100644 --- a/recipes-security/checksecurity/checksecurity_2.0.15.bb +++ b/recipes-security/checksecurity/checksecurity_2.0.15.bb | |||
@@ -5,7 +5,8 @@ LICENSE = "GPL-2.0" | |||
5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" |
6 | 6 | ||
7 | SRC_URI = "http://ftp.de.debian.org/debian/pool/main/c/checksecurity/checksecurity_${PV}.tar.gz \ | 7 | SRC_URI = "http://ftp.de.debian.org/debian/pool/main/c/checksecurity/checksecurity_${PV}.tar.gz \ |
8 | file://setuid-log-folder.patch" | 8 | file://setuid-log-folder.patch \ |
9 | file://check-setuid-use-more-portable-find-args.patch" | ||
9 | 10 | ||
10 | SRC_URI[md5sum] = "a30161c3e24d3be710b2fd13fcd1f32f" | 11 | SRC_URI[md5sum] = "a30161c3e24d3be710b2fd13fcd1f32f" |
11 | SRC_URI[sha256sum] = "67abe3d6391c96146e96f376d3fd6eb7a9418b0f7fe205b465219889791dba32" | 12 | SRC_URI[sha256sum] = "67abe3d6391c96146e96f376d3fd6eb7a9418b0f7fe205b465219889791dba32" |
diff --git a/recipes-security/checksecurity/files/check-setuid-use-more-portable-find-args.patch b/recipes-security/checksecurity/files/check-setuid-use-more-portable-find-args.patch new file mode 100644 index 0000000..f1fe8ed --- /dev/null +++ b/recipes-security/checksecurity/files/check-setuid-use-more-portable-find-args.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From f3073b8e06a607677d47ad9a19533b2e33408a4f Mon Sep 17 00:00:00 2001 | ||
2 | From: Christopher Larson <chris_larson@mentor.com> | ||
3 | Date: Wed, 5 Sep 2018 23:21:43 +0500 | ||
4 | Subject: [PATCH] check-setuid: use more portable find args | ||
5 | |||
6 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | ||
7 | --- | ||
8 | plugins/check-setuid | 6 +++--- | ||
9 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
10 | |||
11 | Index: checksecurity-2.0.15/plugins/check-setuid | ||
12 | =================================================================== | ||
13 | --- checksecurity-2.0.15.orig/plugins/check-setuid 2018-09-06 00:49:23.930934294 +0500 | ||
14 | +++ checksecurity-2.0.15/plugins/check-setuid 2018-09-06 00:49:49.694934757 +0500 | ||
15 | @@ -99,7 +99,7 @@ | ||
16 | ionice -t -c3 \ | ||
17 | find `mount | grep -vE "$CHECKSECURITY_FILTER" | cut -d ' ' -f 3` \ | ||
18 | -xdev $PATHCHK \ | ||
19 | - \( -type f -perm +06000 -o \( \( -type b -o -type c \) \ | ||
20 | + \( -type f \( -perm -4000 -o -perm -2000 \) -o \( \( -type b -o -type c \) \ | ||
21 | $DEVCHK \) \) \ | ||
22 | -ignore_readdir_race \ | ||
23 | -printf "%8i %5m %3n %-10u %-10g %9s %t %h/%f\n" | | ||