Commit Graph

291 Commits

Author SHA1 Message Date
Armin Kuster bc8a459b07 oe-release: add oe-release file for openscap
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-27 09:42:01 -07:00
Armin Kuster 9f2714b3b1 os-release: needed by openscap
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-27 09:41:25 -07:00
Armin Kuster 363c2812a6 openscap: Add oe specific files
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-26 14:01:46 -07:00
Armin Kuster 413f66a2ca openscap: add dameon
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-25 07:50:41 -07:00
Armin Kuster 548d89a0eb openscap: add scap-security-guide
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-25 07:49:45 -07:00
Armin Kuster 417b6d53dc openscap: add package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-25 07:49:16 -07:00
Armin Kuster dc9499fcda rename layer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-17 15:07:50 -07:00
Armin Kuster b1b0d08fea lynis: add missing procps
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-17 15:07:04 -07:00
Armin Kuster e6564cea5d README: add missing file
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-17 15:06:34 -07:00
Armin Kuster 518de236e3 clamav: update llvm to use 5.0 to match version in core
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-17 12:06:00 -07:00
Armin Kuster 0253cd9e37 lynis: add new package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-17 12:03:08 -07:00
Armin Kuster 7009b9a985 meta-scanners: add new layer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-17 12:02:02 -07:00
Armin Kuster c7307d28db cppcheck: add new package
Signed-off-by: Armin Kuster <akuster@mvista.com>
2017-09-17 11:27:48 -07:00
Armin Kuster 2c9c2b9633 flawfinder: add new package
Signed-off-by: Armin Kuster <akuster@mvista.com>
2017-09-17 11:27:48 -07:00
Jackie Huang 6b7ff79287 packagegroups: fix invalid license file
Use '${COMMON_LICENSE_DIR}/MIT' for MIT License to fix the warning:

| WARNING: packagegroup-core-security do_populate_lic:
  ${COREBASE}/LICENSE is not a valid license file, please use
  '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM.
  This will become an error in the future

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-15 07:16:58 -07:00
Jackie Huang ad008ee776 samhain: fix QA issue for GNU_HASH
Add LDFLAGS variable to fix QA issue for GNU_HASH:
| ERROR: samhain-client-4.2.2-r0 do_package_qa: QA Issue:
  No GNU_HASH in the elf binary: '/builddir/usr/sbin/samhain_setpwd' [ldflags]

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-15 07:15:55 -07:00
Jackie Huang 2bf6ef5645 samhain: avoid searching host dir for postgresql
Add a patch to avoid searching host dir for postgresql,
and set PGSQL_INC_DIR and PGSQL_LIB_DIR instead.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-15 07:15:55 -07:00
Jackie Huang 2a22d6be5d samhain: fix for the PACKAGECONFIG
* The "??=" assignment for PACKAGECONFIG is overridden by
  the following "+=" assignments, which is not expected,
  so combine them into one assignment with multiple lines.

* Fix a typo for postgresql.

* Remove unneeded quotation marks.

* run aotoconf to regenerate the configure, or the patch
  for ps option doesn't work:
  | configure: error: unrecognized option: --with-ps-path=/bin/ps

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-15 07:15:55 -07:00
Jackie Huang eb6297b148 samhain: depends on attr when selinux is enabled
The extended attribute is required by selinux feature,
so add the dependency when selinux is enabled.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-15 07:15:45 -07:00
Armin Kuster c52d4412c6 apparmor: fix a few build issues
configure.ac:8: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
| configure.ac:8: error: version mismatch.  This is Automake 1.15.1,
| configure.ac:8: but the definition used by this AM_INIT_AUTOMAKE

add aclocal

and

 make: Entering directory '/home/akuster/oss/clean/poky/build/tmp/work/mips64-poky-linux/apparmor/2.11.0-r0/apparmor-2.11.0/binutils'
| error: ../libraries/libapparmor//src/.libs/libapparmor.a is missing. Pick one of these possible solutions:

remove --disable-static

and

ERROR: apparmor-2.11.0-r0 do_package_qa: QA Issue: /usr/lib/apparmor/ptest/testsuite/parser/tst/gen-dbus.pl contained in package apparmor-ptest requires /usr/bin/perl, but no providers found in RDEPENDS_apparmor-ptest? [file-rdeps]

add perl to ptest RDEPENDS

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-10 18:55:09 -07:00
Armin Kuster 1b5a6709e3 Apparmor: add apache2 to PACKAGECONF and check for webserver layer
Don't want to add layer depends for one package unless needed.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-10 09:55:36 -07:00
Patrick Ohly 61f3513b78 tpm2.0-tss: fix systemd package list
Commit 4c4fa8c "tpm2.0-tss: install resourcemgr service" introduced
systemd support for the resourcemgr package, but left the default
${PN} in SYSTEMD_PACKAGES, leading to an apparently harmless (?) build
error, emitted by systemd.bbclass via bb.error() because tpm2.0-tss
does not have a package of that name:

ERROR: tpm2.0-tss-git-r0 do_package: tpm2.0-tss does not appear in package list, please add it

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-10 09:07:35 -07:00
Armin Kuster 34be1bf561 nmap: update to 7.60
LIC_CHKSUM_FILES changed do to yr update.

add a few more PACKCONFIG

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-05 08:15:58 -07:00
Armin Kuster 3352b61846 fail2Ban: Add new package
Fail2Ban scans log files like /var/log/auth.log and bans IP addresses having too many failed login attempts. It does this by updating system firewall rules to reject new connections from those IP addresses, for a configurable amount of time. Fail2Ban comes out-of-the-box ready to read many standard log files, such as those for sshd and Apache, and is easy to configure to read any log file you choose, for any error you choose.

Though Fail2Ban is able to reduce the rate of incorrect authentications attempts, it cannot eliminate the risk that weak authentication presents. Configure services to use only two factor or public/private authentication mechanisms if you really want to protect services.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-02 11:26:23 -07:00
Armin Kuster ed1aa53ced sleuthkit: fix No GNU_HASH in the elf binary
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-02 11:26:23 -07:00
Mikko Ylinen 588e85230b linux-yocto: drop all 4.1 content
linux-yocto_4.1.bb recipe has been removed from oe-core master
and that triggers a bitbake error due to orphan bbappends
maintained in meta-security.

To fix the error, drop linux-yocto_4.1.bbappend plus the patches
and the config fragments for it.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-02 11:26:23 -07:00
Armin Kuster 3edd9d56dd linux-yocto: add 4.12 bbappends
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-02 11:26:23 -07:00
Armin Kuster a9c1515a37 tripwire: update to 2.4.3.5
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-02 11:26:23 -07:00
Jackie Huang e593413a30 samhain: update to 4.2.2
* update to version 4.2.2
* Add new recipe for standalone mode
* Add systemd support
* Add patches to fix several issues
* samhain-standalone: add ptest support
* samhain-server: no need to depend on samhain-server-native
* Move common things from the bb to the inc file

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-02 11:26:12 -07:00
Tom Rini 2af2e78734 apparmor: Additional runtime fixes
- We need various python3 modules and we can only really solve this
  problem by including all python3-modules.
- aa-easyprof needs to have its shebang corrected, do so.
- The apparmor initscript depends on functions that LSB does not require
  so we must provide them.  In some cases it's using non-standard
  function, so we just use more appropriate names.
- The apparmor sysvinit-style initscript assumes that
  systemd-detect-virt will exist on the filesystem.  Change this to
  check that it does before trying to execute it.

[for aa-easyprof:]
Reported-by: Anders Montonen <Anders.Montonen@iki.fi>
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-31 08:15:22 -07:00
Jackie Huang 7c6528e36c libmhash: add new recipe
Mhash is a free (under GNU Lesser GPL) library which provides
a uniform interface to a large number of hash algorithms.
These algorithms can be used to compute checksums, message
digests, and other signatures.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-31 08:15:22 -07:00
Jackie Huang 098d75c8ad libgssglue: add new recipe
libgssglue exports a gssapi interface which calls
other gssapi libraries.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-31 08:15:22 -07:00
Jackie Huang b08646b517 nmap: upgrade to 7.50
- Add a patch to fix python library install dir for multilib.

- Add a patch to fix race condition with mkdir command.

- Inherit pythonnative instead of python-dir and install
  python modules for ndiff to fix the following errors:

  """
  root@qemux86-64:~# ndiff --help
  -sh: /usr/bin/ndiff: /path_to_build/tmp/hosttools/python: bad interpreter: No such file or directory
  root@qemux86-64:~# python /usr/bin/ndiff
  Could not import the ndiff module: 'No module named ndiff'.
  """

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-31 08:15:22 -07:00
Jackie Huang 28f9b5f1ac keynote: add new recipe
KeyNote is a simple and flexible trust-management system
designed to work well for a variety of large- and small-
scale Internet-based applications

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-31 08:15:22 -07:00
Armin Kuster c93a3d38e8 tpm2.0-tools: update to 2.0.0 plus
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-07-31 08:15:22 -07:00
Jackie Huang 7373d476a4 xmlsec1: add new recipe
XML Security Library is a C library based on LibXML2 and OpenSSL.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-06-20 21:44:23 -07:00
Tom Rini 85f21ebd70 apparmor: Rework such that the utilities are functional by default
This introduces a number of changes:
- Fix the python PACKAGECONFIG knob
  - The included python support is python3-based, so use those classes.
  - When set, make sure to RDEPEND on the python modules the tools use.
- Fix the perl PACKAGECONFIG knob
  - Add two patches so that configure will find perl and then compile
    will cross-compile the library correctly.
  - So that we place perl modules in the correct location we need cpan
    to be inherited.
  - When disabled, remove the RDEPENDS on perl as the RDEPENDS comes in
    via inherit.
- Default to enabling the python and perl PACKAGECONFIG knobs as the
  majority of the userspace tools are python3 based, and the few that
  aren't that nor C based are perl based.
- Because of the above we must drop the -python package because it's
  required for the utilities in the main package.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-06-20 21:44:13 -07:00
Armin Kuster 15e9238f02 apparmor: fix python packaging issue
WARNING: apparmor-2.11.0-r0 do_package: QA Issue: apparmor: Files/directories were installed but not shipped in any package:
  /usr/lib/python2.7
  /usr/lib/python2.7/site-packages
  /usr/lib/python2.7/site-packages/apparmor-2.11.0-py2.7.egg-info
  /usr/lib/python2.7/site-packages/apparmor
  /usr/lib/python2.7/site-packages/apparmor/regex.py

use python2 instead of python3

Signed-off-by: Armin Kuster <akuster@mvista.com>
2017-05-30 08:01:41 -07:00
Jackie Huang 0686f0276a ecryptfs-utils: add new recipe
eCryptfs is a stacked cryptographic filesystem that ships
in Linux kernel versions 2.6.19 and above. This package
provides the mount helper and supporting libraries to
perform key management and mount functions.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-30 08:01:15 -07:00
Jackie Huang 4d95e9819f keyutils: add new recipe
keyutils is utilities to control the kernel key
management facility and to provide a mechanism by
which the kernel call back to userspace to get a
key instantiated.

It's required by ecryptfs-utils.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-30 08:01:11 -07:00
André Draszik 1a26789043 layer.conf: fix typo (meta-filesystems vs mete-filesystems)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-29 14:31:25 -07:00
Armin Kuster 6c636e7f4e tor: add recipe
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-29 14:31:12 -07:00
Peter Lei ce7c934569 packagegroup-security-tpm-i2c: fix syntax
Fix "ERROR: ExpansionError during parsing" when building with multilib.

Signed-off-by: Peter Lei <peter.lei@ieee.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-19 07:38:20 -07:00
Armin Kuster 4859a49faf layer-conf: Use *_FEATURES in LAYERDEPENDS
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:55:02 -07:00
Armin Kuster eec916bd18 security-core package group: add few more apps
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-09 07:49:14 -07:00
Armin Kuster 131c2d24f4 clamav: fix new build error
configure: error: The installed zlib version may contain a security bug. Please upgrade to 1.2.2 or later: http://www.zlib.net. You can omit this check with --disable-zlib-vcheck but DO NOT REPORT any stability issues then!

bypass check as our zlib is 1.2.11

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-09 07:49:03 -07:00
Armin Kuster 99eeb2a916 sssd: update SRC_URI as git.fedorahosted.org shut down
build fixes too

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-09 07:48:58 -07:00
Armin Kuster 4de97bd1ef tpm2: package groups fixes
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-08 12:47:42 -07:00
Armin Kuster b4d295e12f linux-stable: fix module selections
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-08 12:47:05 -07:00
Armin Kuster 69a5586888 tpm-image: used for testing for now.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-08 08:39:54 -07:00