Commit Graph

369 Commits

Author SHA1 Message Date
Armin Kuster b265a8f1c7 libwhisker2-perl: fix build issue
minor formating clean ups.
add "ssl" depend packageconf option

Change inherit perlnative to BBCLASSEXTEND = "native" to fix build issue

error: Can't install libwhisker2-perl-2.5-r0@i586: no package provides /home/akuster/oss/maint/security/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl.real

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-01-03 21:21:44 -08:00
Armin Kuster 397b35c028 nikto: fix depends
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-01-03 21:21:32 -08:00
Armin Kuster b80abbf51d perl: reorg recipes to match meta-perl.
move security perl recipes to a more standardized
recipes-perl layout.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-01-03 21:21:11 -08:00
Armin Kuster 424473d61e remove: libcurses-perl, libhtml-parser-perl, libnet-dns-perl
those packages are being moved to meta-perl.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-01-03 21:21:03 -08:00
Armin Kuster 5294a2c603 libcap-ng: update to 7.4 plus security fix
0.7.4
- In pscap, remove unused code
- Add CAPNG_INIT_SUPP_GRP to capng_change_id
- Drop CAP_COMPROMISE_KERNEL
- Update the autotools components
- Dynamically detect last capability (#895105)
- Add PR_SET_NO_NEW_PRIVS to capng_lock if kernel supports it
  (CVE-2014-3215)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-01-03 21:20:53 -08:00
Armin Kuster 76386bd2ca samhain: update to 3.1.3
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-11-28 19:14:10 -08:00
Armin Kuster 039c711f17 packagegroups [v2]: add a few more catagories
Add tripwire, samhain and checksec packages
fix ccs-tools to exclude if no kernel support

v2:
 fixed missing "}"

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-11-28 19:14:02 -08:00
Armin Kuster 4fe07fed2e pinentry: remove from layer
pinentry is now in oe-core so remove it from this layer.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-11-28 19:13:54 -08:00
Armin Kuster 93891d856d libseccomp: add package for tests.
I wanted to run the tests manually on a target. Tests are now
built and packaged.

to run: /usr/lib/libseccomp/tests/regression -a

will add ptest later.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-11-28 19:13:46 -08:00
Armin Kuster b584aa13f6 checksecurity: update to version 2.0.15
update fixed:
 * Fix bug in the CS_NFSAFS definition in etc/check-setuid.conf that prevents
   the script from matching any filesystem. This bug was, actually, making the
   script not do anything in the default configuration.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-10-26 12:35:55 -07:00
Armin Kuster 33e45ec16c isic: Add new package
This adds the ISIC is a suite of utilities to exercise the stability of an IP and its component stacks (TCP/UDP/ICMP etc.) It generates piles of pseudo random packets with configurable tendancies, then sent to the target to penetrate its firewall rules or find bug

backported two patches from Redhat.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-10-26 12:35:48 -07:00
Armin Kuster b59053a3dd samhain: update to 3.1.2
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-10-26 12:35:39 -07:00
Armin Kuster b255a7137f README: update layers references
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:26:14 -07:00
Armin Kuster 39f1010f3a layer.conf: add layer depends.
added layerdepends check for  perl-layer and opemembedded-layer

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:25:35 -07:00
Armin Kuster da8d7084fa libnet-ssleay-perl: remove from layer
libnet-ssleay-perl is now in meta-perl

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:25:28 -07:00
Armin Kuster c00f6abe5d tripwire: ppc64 build failure.
| configure: error: /bin/sh ./config.sub powerpc64-poky-linux failed

config.sub did not understand the powerpc64 par.
this patch adds that understanding.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:25:19 -07:00
Armin Kuster 332b02ec89 nmap: New QA issue via ppc
Fixes:
WARNING: QA Issue: nmap rdepends on libpcap, but it isn't a build dependency? [build-deps]

nmap internal lua library does not compile with PPC so use OE version instead.

Changed PACKAGECONFIG assignment from "??=" to "=". It was empty when using
PPC.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:25:08 -07:00
Armin Kuster 1f28cd51dc nmap: Add gui support
Add zenmap to work with gtk+/x11

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:25:00 -07:00
Armin Kuster 20776618f2 v2] nmap: use pkgconfig and reorg
Added pkgconfig support
Since most binaries provided by nmap can be excluded via configure
  manage via pkgconfig
Aligned python packages with binaries so nmap-python is no longer needed

V2: Missed some options in EXTRA_OECONF changes

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:24:53 -07:00
Armin Kuster 2682cd4105 nmap: build QA Warnings
WARNING: QA Issue: nmap rdepends on libcrypto, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: nmap rdepends on libssl, but it isn't a build dependency? [build-deps]

This fixes the above QA warnings.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-09-13 10:24:47 -07:00
Armin Kuster b3f08c7b2b samhain: arm build failure
| x_sh_error.c: In function 'sh_error_string':
| x_sh_error.c:1580:31: error: incompatible type for argument 1 of 'memmove'
|  #define VA_COPY(ap1, ap2)     memmove ((ap1), (ap2), sizeof (va_list))
|                                ^
| x_sh_error.c:1720:14: note: in expansion of macro 'VA_COPY'
|        /*@i@*/VA_COPY(vl2, vl);
|               ^

this patch fixes the arm build failure.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-08-27 21:12:47 -07:00
Armin Kuster 6328a58612 pinentry: Fix QA error
This fixes: WARNING: QA Issue: pinentry rdepends on libcap, but it isn't a build dependency? [build-deps]

Also add pkgconfig support.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-08-27 21:12:31 -07:00
Armin Kuster 6e72910b3e samhain: server package
This is the server portion.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-08-27 21:11:32 -07:00
Armin Kuster 2559581eaa samhain: client package
This is the client portion.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-08-27 21:11:21 -07:00
Armin Kuster f0f670c2fe samhain: New ISD package
These are the base files needed by both
client and server recipes.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2014-08-27 21:11:12 -07:00
Armin Kuster e6b6816192 tripwire: Add files for package support
Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-27 21:09:49 -07:00
Armin Kuster fa3c8b475c tripwire: Add new package to layer
Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-27 21:09:40 -07:00
Armin Kuster 14b15cc276 tomoyo: Add kconfig
V2:
Fixed path to init program
Fix typo in name

Add kernel config to enable tomoyo

Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-20 21:19:04 -07:00
Armin Kuster 43ce4b4889 tomoyo: ccs-tools
Add userland support program ccs-tools

V2:
Added RDEPEND on systemd
Fixed Description
Moved man page to doc packaged
Added Requiered distro feature on kernel component.
Fixed typo in path for init program

Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-20 21:18:48 -07:00
Armin Kuster 621f30abed libnetaddr-ip-perl: Blacklist recipe
As far as I can tell, this is not used by any reciped in meta-security.

It does not build so I am Black listing it.

Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-10 20:17:07 -07:00
Armin Kuster 17d2fc38a7 libcurses-perl: Fix build issue
Update to later vesrion to fix build issue.

Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-10 20:16:57 -07:00
Armin Kuster a1f10775fe V2 packagegroup: Add initial set of package groups
Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-06 08:06:36 -07:00
Armin Kuster f20ff5c45c checksec: Add new alsr pic pie test script
Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-06 07:57:16 -07:00
Armin Kuster 6a4b2849a1 pinentry: Fix do_package_qa issue
This fixes;
ERROR: QA Issue: pinentry: The compile log indicates that host include and/or library paths were used.

Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-06 07:56:49 -07:00
Armin Kuster 6f64473a40 nmap: update to 6.46
Updated to later version on nmap.
remove patch which is included in update
Added ndiff package
Include zenmap build changes but commented out for now and untested

Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-08-06 07:56:14 -07:00
Alexandru.Vaduva 914128d8c9 libcap-ng: resolved issue related with LONG_BIT definition
The problem is well known for 64 bits architectures and the solution
is offered in the same recibe but in the meta-selinux layer.

Signed-off-by: Alexandru.Vaduva <Alexandru.Vaduva at enea.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
2014-07-02 19:46:00 -07:00
Armin Kuster 3689209e52 meta-security: Add Maintainers
Add Maintainers statement to README and add self to list.

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-07-02 16:59:42 -07:00
Nick D'Ademo 9104e24e38 nmap: inherit autotools-brokensep to allow B=S build.
Signed-off-by: Nick D'Ademo <nickdademo@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2014-05-07 07:50:49 -07:00
Saul Wold 7e8c7918d9 lib-perl: Fix quoting in DESCRIPTION
My mistake for taking the older version, I thought I had the latest

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-11-05 11:00:08 -08:00
Joe MacDonald 62b5ee7ea3 libseccomp: add latest stable version, add ptest
A new stable version of libseccomp is available, so update the recipe.  At
the same time, integrate the ptest support that's currently being
discussed on the libseccomp list.

Signed-off-by: Joe MacDonald <joe@deserted.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-11-04 12:41:45 -08:00
mulhern cac0cef10c 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>
2013-10-23 21:57:20 -04:00
mulhern cff02a044c meta-security: Add a new .bbclass for meta-security layer.
Inheriting the class will cause the check_security function to run on the
ROOTFS image. Currently the check_security function just invokes
buck-security-native on the root filesystem of the image.
2013-10-23 21:57:20 -04:00
mulhern 594e95f052 buck-security: Parameterize hard-coded file locations.
buck-security hard-codes a number of file locations for the target system on
which it operates and also its own dependencies. These hard-coded dependencies
have been parameterized and a few other related changes have been made. The
changes are more fully explained below.

buck-security.bb:

* The RDEPENDS_${PN} variable has been made more orderly in anticipation of
  subsequent changes. It also includes a few other perl modules required by
  the changes to the application.
* The functionality.patch file has been removed and superseded by the
  take_root_dir.patch patch.
* The definition of S is parameterized on BPN not PN; they are different if the
  package has a native option.
* The install step replaces the use directives and an assignment in the
  buck-security script in a more general way than previously.
* The recipes now allows the package to have a native version.

take_root_dir.patch:
  * buck-security

    * An additional flag, sysroot, that specifies the sysroot of the filesystem
      that the buck-security utility inspects is added. If the sysroot can not
      be located the script fails gracefully.
    * An additional flag, no-sudo, which prevents the script from exiting
      if it is not run by root is added.
    * An additional flag, disable-checks, which accepts a comma-separated list
      of checks to be disabled is added.
    * The script checks whether there has been an error in parsing the
      command-line arguments and fails with a usage message if there has.
    * The log flag now optionally takes a log file name.
    * The location of the configuration file is calculated relative to the
      location of the main script and if it can not be found the script fails
      gracefully.
    * The various file locations specified in the buck-security configuration
      file are made relative to the location of the buck-security script or the
      sysroot as appropriate.
    * If a log file has been specified the log is not also printed to stdout.
    * The command actually executed is printed in the log.
    * Some checks for mutually exclusive options are added.
    * Output level 3 is now meaningless, so it has been removed.
    * Various changes have been made to the report format.
    * Results are sorted lexicographically and, if abspath, do not include
      the sysroot.

  * checks/*.pm files
    * Wherever a directory had been hard-coded it is now parameterized on the
      sysroot.
    * In some cases, a test that had previously been run as a bash test was
      converted to a perl test to allow better handling of results and errors.
    * The output parameter is no longer accepted by the check procedure since
      this value is global.
    * All check procedures now accept an output_type parameter.
    * The dangling URLs are removed from the help text.

  * checks/lib/check.pm
    * The CheckBash and CheckPerl functions have been adapted so that the
      the filepaths are not hard-coded and so that the actual command is made
      available to the logging component.
    * A parameter indicating the outcome type is accepted and passed to the
      exception checker.
    * Error output is clearly distinguished from regular output.
    * A failure in a test is clearly distinguished from an insecure result.
    * The output is no longer formatted in the check functions.

  * checks/lib/mkchecksum.pm
    * The command no longer is run on non-existent directories.

  * checks/lib/exceptions.pm
    * The exception file path is located relative to the buck-security script.
    * If the exceptions are pathnames, the sysroot is prepended.
    * Correct wildcard semantics is observed.

  * checks/lib/users.pm
    * The passwd files are located relative to the sysroot.
    * Reading from the password file is made more principle.
    * The test experiences an error if files can not be found rather than
      the script terminating.
    * Some dead code is eliminated.

  * conf/buck-security.conf
    * The checksum_dir variable is a list instead of a string for easier
      manipulation.
    * The new configuration variable sysdir is added and the default is /.
    * The ssh_config variable is added.
    * All tests are included in the checks variable.

  * checks/sshd.pm
    * The ssh config file is set in the buck-security configuration file
      instead of hard-coded here.

  * checks/nopasswd.pm
    * This is a duplicate of emptypasswd, so it is removed.

  * RDEPENDS_${PN}_class-native variable is added as some tasks make no
    sense when run externally. Since they will not be run, there is no point
2013-10-23 21:57:20 -04:00
mulhern b2a60ba7ff bastille: Fix failure during install.
[YOCTO #5177]

On some systems the bitbake install step failed. The failure was due to some
files that were being overwritten not having sufficient permissions.

The install script in the recipe is changed so that the
set_required_questions.py script is invoked on the files in the image
directory, which are guaranteed to have adequate permission. Previously, it had
been invoked on the files in the work directory.

The set_required_questions.py script is changed in the following
ways.

* The xform_file function now handles the overwriting of the files in a more
  robust manner.
* The script now accepts a debug flag. When set this flag will cause the
  script to display more developer friendly information on error.
* The xform_file function has a descriptive comment.

Signed-off-by: mulhern <mulhern@yoctoproject.org>
2013-09-25 20:52:09 -04:00
mulhern 23815f3001 libcurses-perl: curses-perl renamed to libcurses-perl.
[YOCTO #5081]

The recipe meta-security/recipes-security/perl/curses-perl_1.28.bb is renamed
to libcurses-perl_1.28.bb to conform to accepted naming scheme.
The dependency in the Bastille recipe is updated accordingly.

Signed-off-by: mulhern <mulhern@yoctoproject.org>
2013-09-06 15:06:03 -04:00
mulhern 584c1982cc libenv-perl: Remove redundant recipe in meta-security layer.
[YOCTO #5081]

The recipe meta-security/recipes-security/env-perl_1.04.bb is removed since
there is a recipe for the same Perl module at
poky/meta/recipes-lsb4/perl/libenv-perl_1.04.bb. The dependency on env-perl
in the checksecurity recipe is updated to a recipe on libenv-perl.
2013-09-06 15:04:51 -04:00
mulhern acf8d44f70 libcap-ng: omit an unnecessary build time dependency.
[YOCTO #5084]

libcap has been removed from the list of DEPENDS packages. Since libcap was the
only package in the list the DEPENDS variable has been removed from the recipe
file.

Signed-off-by: mulhern <mulhern@yoctoproject.org>
2013-09-05 14:48:20 -04:00
mulhern 5ec81ec5b1 Bastille: document the current status and usability of the Bastille install.
The README file is updated to indicate the functionality of Bastille that is
actually available.

The recipe file is updated with a pointer to the README file.

An additional patch is added so that when Bastille is run in interactive mode
it will not attempt to make any changes to the system. This is better than
attempting to make the changes and making the screen flicker . The text on the
final screen has been updated appropriately.

Signed-off-by: mulhern <mulhern@yoctoproject.org>
2013-08-30 15:42:10 -04:00
mulhern ec1c761ad8 Bastille: set Yocto specific questions via config file.
The python script, set_required_questions.py reads the list of questions and
answers from the config file and edits the REQUIRE_DISTRO field for those
questions in the questions file so that it includes "Yocto" if it is not
already present. This has the effect of causing Bastille, when loading
questions for the Yocto distribution, to load only those that are answered
in the existing config file. Under the assumption that the exisitng config
file contains question/answer pairs that are relevant to the Yocto project,
this will cause the interactive question screen to have answers that are
relevant to the Yocto project.

Signed-off-by: mulhern <mulhern@yoctoproject.org>
2013-08-30 15:39:58 -04:00
mulhern 6e23502b38 Bastille: accept and observe --os flag in multiple situations.
[YOCTO #3867]

Five additional patches which cause the --os flag to be accepted and observed
are added. An additional distro, Yocto, is added. The individual patches
are described below.

upgrade_options_processing.patch: Changes setOptions procedure so that it
accepts named parameters for greater flexibility and adjusts all invocations
accordingly. Uses more precise specifications in invocatiosn of
Getop::Long::GetOptions. Omits code associated with a commented out flag.

accept_os_flag_in_backend.patch: Accepts and observes an additional --os
flag in BastilleBackEnd.

allow_os_with_assess.patch: No longer print a usage message and quit if
--assess or its related flags are specified along with the --os flag.

edit_usage_message.patch: Edit usage message to include the specification of
an --os flag with the specification of an --assess flag.

organize_distro_discovery.patch: Separates inferring the distro from
specifying the distro. Adds a "Yocto" distro among the other Linux
distros. Causes the specified distro to override the inferred
distro with a warning message when they are different. Previously if
either the inferred distro or the specified distro was not among supported
distros Bastille would quit with an error.

Signed-off-by: mulhern <mulhern@yoctoproject.org>
2013-08-30 15:38:50 -04:00