Commit Graph

308 Commits

Author SHA1 Message Date
Armin Kuster 694ab819bc openscap: fix build issue
core2-64-oe-linux/openscap/1.2.15-r0/git/src/.libs/libopenscap.so: error: undefined reference to 'dlopen'
| core2-64-oe-linux/openscap/1.2.15-r0/git/src/.libs/libopenscap.so: error: undefined reference to 'dlsym'
| core2-64-oe-linux/openscap/1.2.15-r0/git/src/.libs/libopenscap.so: error: undefined reference to 'dlerror'
| core2-64-oe-linux/openscap/1.2.15-r0/git/src/.libs/libopenscap.so: error: undefined reference to 'dlclose'

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-12-10 15:03:46 -08:00
André Draszik 756f65f0f8 trousers: allow overriding localstatedir mandir sysconfdir
It is currently impossible to override localstatedir,
mandir and sysconfdir during ./configure, because they
are being overriden unconditionally.

With this patch it is now possible to set above
locations as needed.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-11-06 12:17:50 -08:00
André Draszik fc75466e0b trousers: make initscript more reliable
The combination of using start-stop-daemon and pidof is
not working reliably in all cases. Sometimes, the
tcsd daemon isn't running yet at the time pidof is being
invoked.

This results in an empty /var/run/tcsd.pid, making it
impossible to stop tcsd using the init script.

To solve this, one could either add a delay before calling
pidof, or alternatively use start-stop-daemon's built-in
functionality to achieve the same.

Let's do the latter.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-11-06 12:17:42 -08:00
André Draszik de48d57a7f fscryptctl: add v0.1.0
fscryptctl is a low-level tool written in C that handles
raw keys and manages policies for Linux filesystem
encryption [1].

For a tool that presents a higher level interface and
manages metadata, key generation, key wrapping, PAM
integration, and passphrase hashing, see fscrypt [2].

[1] https://lwn.net/Articles/639427
[2] https://github.com/google/fscrypt

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-24 14:04:57 -07:00
Armin Kuster d9145660cc openscape: fix ptest compile errors and update
update to 1.2.15

plus
ERROR: openscap-1.2.14-r0 do_package_qa: QA Issue: /usr/lib/openscap/ptest/tests/probes/process58/all.sh contained in package openscap-ptest requires /bin/bash, but no providers found in RDEPENDS_openscap-ptest? [file-rdeps]
ERROR: openscap-1.2.14-r0 do_package_qa: QA Issue: /usr/lib/openscap/ptest/tests/xmldiff.pl contained in package openscap-ptest requires /usr/bin/perl, but no providers found in RDEPENDS_openscap-ptest? [file-rdeps]
ERROR: openscap-1.2.14-r0 do_package_qa: QA Issue: /usr/lib/openscap/ptest/tests/nist/test_worker.py contained in package openscap-ptest requires /usr/bin/python2, but no providers found in RDEPENDS_openscap-ptest? [file-rdeps]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-15 16:35:15 -07:00
Dengke Du 4b67ec8263 keynote: update the SRC_URI
The old URL can't be available, give the new URL to keynote.
The project already moved to:

    https://sourceforge.net/projects/keynote-2-3/

The different between old and new tarball was:

    the old tarball contains doc directory, source codes were same.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-10 07:24:59 -07:00
Armin Kuster aeb9e6c571 openssl-tpm-engine: add package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-10 07:24:59 -07:00
Armin Kuster ef1e8d9144 tpm2-abrmd: add package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-10 07:24:59 -07:00
Armin Kuster f6d48f6006 tpm-quote-tools: Add package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-10 07:24:59 -07:00
Armin Kuster 5ada70014f pcr-extend: add new package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-10 07:24:59 -07:00
Armin Kuster 1c56da015d README: update with basic info
needed to pass yocto-check-layer

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-10 07:24:59 -07:00
Armin Kuster bc9ff10730 swtpm: fix cuse depends
if cuse is enabled, depend on fuse which is in meta-filesystems
throw error is layer is missing.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-10 07:24:59 -07:00
Armin Kuster 607d2bc7dd linux-yocto/4.12: update path version
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster 24f3e574ab bastile: fix QA issue
WARNING: bastille-3.2.1-r0 do_package_qa: QA Issue: Symlink /usr/sbin/UndoBastille in bastille points to TMPDIR [symlink-to-sysroot]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster 4f2d306f8a lynis: move recipe to correct layer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster 8229c88275 openscap-daemon: fix QA issue
ERROR: openscap-daemon-0.1.6+gitAUTOINC+3fd5c75a08-r0 do_package_qa: QA Issue: /usr/bin/oscapd-cli contained in package openscap-daemon requires /usr/bin/python, but no providers found in RDEPENDS_openscap-daemon? [file-rdeps]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster 6f5b7b303f suricata: update to 4.0.0
libhtp updated in // as suricata contains the sources

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster 1e0d5ee5bf redhat-security: remove PR and fix style
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster cb8f175108 checksecurity: fix recipe style
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster 0db37f2c69 libenv-perl: add recipe removed from core
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster 906002f4af layer.conf: update layer depends
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Armin Kuster fba6132c5a libewf: fix build issue
ERROR: gettext-native required but not in DEPENDS for file /build/build_artifacts/master/tmp-glibc/work/i586-oe-linux/libewf/20140608-r0/libewf-20140608/configure.ac.
Missing inherit gettext?

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:18 -07:00
Armin Kuster f42925b1c3 oe-release: add oe-release file for openscap
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster 01a20104b2 os-release: needed by openscap
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster a633d83537 openscap: Add oe specific files
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster 922deffe04 openscap: add dameon
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster 692864f6e8 openscap: add scap-security-guide
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster 55dade4391 openscap: add package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster bb789d6d88 lynis: add auditing tool
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster c1781db5be meta-security-compliance: add new layer for compliance and audit applications
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:47:20 -07:00
Armin Kuster d34afdfbf5 clamav: update llvm to use 5.0 to match version in core
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-09-30 11:44:55 -07:00
Jackie Huang e180062c70 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 08:01:07 -07:00
Jackie Huang 738dad9d91 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 08:01:07 -07:00
Jackie Huang a35bcc9495 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 08:01:07 -07:00
Jackie Huang 838f698bd9 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 08:01:07 -07:00
Jackie Huang d3bcc4ba47 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 08:01:07 -07:00
Armin Kuster 62d54856e5 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-15 08:01:07 -07:00
Armin Kuster 169a02dff0 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-15 08:01:07 -07:00
Patrick Ohly f87b66d908 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-15 08:01:07 -07:00
Armin Kuster b646d8fdc0 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-13 07:36:44 -07:00
Armin Kuster 1014cc61fc 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-01 06:44:30 -07:00
Armin Kuster 245d5dcbb8 sleuthkit: fix No GNU_HASH in the elf binary
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-08-31 22:14:30 -07:00
Mikko Ylinen f4af2ebdb6 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-08-31 22:12:02 -07:00
Armin Kuster b82ed2caf9 linux-yocto: add 4.12 bbappends
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-08-31 22:10:50 -07:00
Armin Kuster 8d5ca33a50 tripwire: update to 2.4.3.5
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-08-31 22:10:42 -07:00
Jackie Huang 9949776684 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-08-31 22:09:49 -07:00
Tom Rini 25b8f02eea 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>

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-08-13 08:26:14 -07:00
Jackie Huang aae40f506a 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-08-13 08:26:14 -07:00
Jackie Huang 1c3afde094 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-08-13 08:26:14 -07:00
Jackie Huang 2f30963b82 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-08-13 08:26:14 -07:00