mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-07 04:58:47 +00:00
meta-security: Bump buck-security to new version and remove patch file.
Since I am maintaining buck-security it has accepted the patch take_root_dir.patch and the new version (0.7) contains the result of applying the patch. Signed-off-by: mulhern <mulhern@yoctoproject.org>
This commit is contained in:
+3
-5
@@ -32,12 +32,10 @@ RDEPENDS_${PN}_class-native = "coreutils \
|
|||||||
perl-module-time-localtime \
|
perl-module-time-localtime \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI = "http://sourceforge.net/projects/buck-security/files/buck-security/buck-security_0.6/${BPN}_${PV}.tar.gz \
|
SRC_URI = "http://sourceforge.net/projects/buck-security/files/buck-security/buck-security_${PV}/${BPN}_${PV}.tar.gz"
|
||||||
file://take_root_dir.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "edbd40742853fc91ffeae5b2d9ea7bab"
|
SRC_URI[md5sum] = "611a3e9bb7ed8a8270aa15216c321c53"
|
||||||
SRC_URI[sha256sum] = "5d5dcc58b09c3a4bd87f60f86bb62cd2b0bfd7106a474951f8f520af0042a5b7"
|
SRC_URI[sha256sum] = "c533c6631ec3554dd8d39d2d1c3ed44badbbf50810ebb75469c74639fa294b01"
|
||||||
|
|
||||||
S = "${WORKDIR}/${BPN}_${PV}"
|
S = "${WORKDIR}/${BPN}_${PV}"
|
||||||
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
Index: buck-security_0.6/buck-security
|
|
||||||
===================================================================
|
|
||||||
--- buck-security_0.6.orig/buck-security 2013-09-10 20:58:49.564292001 -0400
|
|
||||||
+++ buck-security_0.6/buck-security 2013-09-11 10:07:40.440543001 -0400
|
|
||||||
@@ -28,11 +28,6 @@
|
|
||||||
# start time
|
|
||||||
my $start_time = time();
|
|
||||||
|
|
||||||
-# Runned by root?
|
|
||||||
-if ( $> != 0 ) {
|
|
||||||
- print STDERR "Only root can run this program\n";
|
|
||||||
- exit 1;
|
|
||||||
-}
|
|
||||||
|
|
||||||
# Read Options from command line (--help, --log and --output), run buck --help for more information
|
|
||||||
my $man = 0;
|
|
||||||
@@ -41,13 +36,15 @@
|
|
||||||
my $opt_log = ''; # Log? via --log
|
|
||||||
my $opt_checksum = 0;
|
|
||||||
my $opt_sysroot = '';
|
|
||||||
+my $opt_pseudo = 0;
|
|
||||||
GetOptions(
|
|
||||||
'output=i' => \$opt_output,
|
|
||||||
'log=s' => \$opt_log,
|
|
||||||
'help|?' => \$help,
|
|
||||||
man => \$man,
|
|
||||||
'make-checksums' => \$opt_checksum,
|
|
||||||
- 'sysroot=s' => \$opt_sysroot
|
|
||||||
+ 'sysroot=s' => \$opt_sysroot,
|
|
||||||
+ 'pseudo' => \$opt_pseudo
|
|
||||||
) ||
|
|
||||||
pod2usage(
|
|
||||||
-message => "\n",
|
|
||||||
@@ -73,6 +70,12 @@
|
|
||||||
|
|
||||||
{ package Config; do $config_file }
|
|
||||||
|
|
||||||
+if ( $> != 0 && ! $opt_pseudo) {
|
|
||||||
+ print STDERR "If you are not using pseudo you must run this script as root.\n";
|
|
||||||
+ exit 1;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
if ($opt_sysroot) {
|
|
||||||
$Config::sysroot = $opt_sysroot;
|
|
||||||
}
|
|
||||||
@@ -98,6 +101,17 @@
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
+if ($opt_pseudo) {
|
|
||||||
+ @Config::checks = grep
|
|
||||||
+ { $_ ne 'checksum' &&
|
|
||||||
+ $_ ne 'firewall' &&
|
|
||||||
+ $_ ne 'services' &&
|
|
||||||
+ $_ ne 'usermask' }
|
|
||||||
+ @Config::checks;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+
|
|
||||||
if ($opt_checksum != 0) {
|
|
||||||
use mkchecksum;
|
|
||||||
mkchecksum->MkChecksum();
|
|
||||||
@@ -219,6 +233,9 @@
|
|
||||||
--sysroot=<root>
|
|
||||||
specify the root directory of the filesystem to be analyzed
|
|
||||||
|
|
||||||
+ --pseudo
|
|
||||||
+ if set, run with pseudo
|
|
||||||
+
|
|
||||||
|
|
||||||
|
|
||||||
=head1 FURTHER INFORMATION
|
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user