Skip to content

Commit 76e9071

Browse files
committed
Add cryptsetup and dmsetup to stdlib paths for all Linux platforms
Adds path[cryptsetup] and (where missing) path[dmsetup] to the redhat, debian, opensuse, suse|sles, and archlinux|manjaro sections. Paths verified in containers for each platform: - archlinux: /usr/bin (all of /sbin, /usr/sbin -> /usr/bin) - redhat, debian, opensuse, suse|sles: /usr/sbin Used by the inventory-fde module (cfengine/modules#123) for LUKS keyslot metadata inspection.
1 parent 7f4b589 commit 76e9071

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/paths.cf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ bundle common paths
193193
"path[df]" string => "/usr/bin/df";
194194
"path[diff]" string => "/usr/bin/diff";
195195
"path[dig]" string => "/usr/bin/dig";
196+
"path[cryptsetup]" string => "/usr/bin/cryptsetup";
196197
"path[dmidecode]" string => "/usr/bin/dmidecode";
198+
"path[dmsetup]" string => "/usr/bin/dmsetup";
197199
"path[echo]" string => "/usr/bin/echo";
198200
"path[egrep]" string => "/usr/bin/egrep";
199201
"path[ethtool]" string => "/usr/bin/ethtool";
@@ -376,6 +378,7 @@ bundle common paths
376378
"path[diff]" string => "/usr/bin/diff";
377379
"path[dig]" string => "/usr/bin/dig";
378380
"path[dmidecode]" string => "/usr/sbin/dmidecode";
381+
"path[cryptsetup]" string => "/usr/sbin/cryptsetup";
379382
"path[dmsetup]" string => "/usr/sbin/dmsetup";
380383
"path[domainname]" string => "/bin/domainname";
381384
"path[echo]" string => "/bin/echo";
@@ -475,6 +478,7 @@ bundle common paths
475478
"path[df]" string => "/bin/df";
476479
"path[diff]" string => "/usr/bin/diff";
477480
"path[dig]" string => "/usr/bin/dig";
481+
"path[cryptsetup]" string => "/usr/sbin/cryptsetup";
478482
"path[dmidecode]" string => "/usr/sbin/dmidecode";
479483
"path[dmsetup]" string => "/usr/sbin/dmsetup";
480484
"path[domainname]" string => "/bin/domainname";
@@ -550,7 +554,9 @@ bundle common paths
550554
"path[df]" string => "/usr/bin/df";
551555
"path[diff]" string => "/usr/bin/diff";
552556
"path[dig]" string => "/usr/bin/dig";
557+
"path[cryptsetup]" string => "/usr/sbin/cryptsetup";
553558
"path[dmidecode]" string => "/usr/sbin/dmidecode";
559+
"path[dmsetup]" string => "/usr/sbin/dmsetup";
554560
"path[echo]" string => "/usr/bin/echo";
555561
"path[egrep]" string => "/usr/bin/egrep";
556562
"path[ethtool]" string => "/usr/sbin/ethtool";
@@ -599,7 +605,9 @@ bundle common paths
599605
"path[df]" string => "/bin/df";
600606
"path[diff]" string => "/usr/bin/diff";
601607
"path[dig]" string => "/usr/bin/dig";
608+
"path[cryptsetup]" string => "/usr/sbin/cryptsetup";
602609
"path[dmidecode]" string => "/usr/sbin/dmidecode";
610+
"path[dmsetup]" string => "/usr/sbin/dmsetup";
603611
"path[domainname]" string => "/bin/domainname";
604612
"path[echo]" string => "/bin/echo";
605613
"path[egrep]" string => "/usr/bin/egrep";

0 commit comments

Comments
 (0)