Commit Graph

178 Commits

Author SHA1 Message Date
Jackie Huang 81243359f2 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-22 18:04:38 -07:00
Tom Rini 70c2f0b35a 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-29 10:28:28 -07:00
Jackie Huang 67073d2ab7 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-29 08:56:10 -07:00
Jackie Huang 6344eb9082 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-29 08:56:05 -07:00
Jackie Huang 140fe2a064 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-29 08:56:01 -07:00
Jackie Huang 688ee39075 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-29 08:55:57 -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
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 929521997a packagegroup: remove tpm components
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-08 08:36:38 -07:00
Armin Kuster 68bad57b8c change tpm from distro to machine feature
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-08 08:34:32 -07:00
Armin Kuster 8fdd9c61f7 freediameter: Add recipe
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-25 18:14:47 -07:00
Armin Kuster 8a86287026 samhain: update to 4.2.1
remove patch integrated into update

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-13 14:04:00 -07:00
Armin Kuster 66bcc2399d apparmor: update to 2.11.0 plus ptest
update to 2.11
Add basic ptest support

v2: remove none existent file

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-04 05:50:36 -07:00
Armin Kuster 34fba126c6 libseccomp: update to 2.3.2
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-01 16:34:53 -07:00
Armin Kuster 2f31c09f0b samhain: fix build issues when using musl
[v2]: Correct musl malloc fix.
remove HAVE_MALLOC_H define; this enables using the included defined mallinfo.

[V1]: Fix c99

x_dnmalloc.c:563:26: error: return type is an incomplete type
| #define public_mALLINFo mallinfo
| ^
| x_dnmalloc.c:1689:17: note: in expansion of macro 'public_mALLINFo'
| struct mallinfo public_mALLINFo() {

and
_dnmalloc.c:5527:17: error: unknown type name 'u_int'
| u_int rnd[(128 - 2*sizeof(struct timeval)) / sizeof(u_int)];
| ^~~~~

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-27 14:30:51 -07:00
Armin Kuster 812e0b6b35 build-image: remove ROOTFS_PKGMANAGE_BOOTSTRAP
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-24 07:27:42 -07:00
Armin Kuster e82a0f18ba samhain-server: fix config error with acl
when acl is enabled this error occurrs.
configure: error: in `/home/akuster/oss/maint/openembedded-core/build/tmp-glibc/work/x86_64-linux/samhain-server-native/4.2.0-r0/samhain-4.2.0':
| configure: error: --enable-posix-acl was given, but test for acl support failed

add missing depends.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-24 07:27:42 -07:00
Armin Kuster 1181b95f85 suricata: update to 3.2.1
cleaned up ptyhon package creation.
dropped patch no longer needed

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-24 07:05:47 -07:00
Wenzong Fan 8b38c93f23 libseccomp: convert test package to ptest
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-02 12:20:56 -08:00
Jackie Huang c12aa7601e scapy: fix the pickling issue
Backport a patch to fix the pickling issue when save_session:

PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster 37f933d49c libseccomp: update to tip
adds support for 4.9 and 4.10-rc1 kernels
adds support for python 3.x

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster 7fd5f25475 apparmor: Add new package
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster a962fb5d68 suricata: update package to 3.1.3
*Changes*

Bug #1861: Suricata with multi tenancy does not start in 3.1/3.1.1
Bug #1889: Suricata doesn't error on missing semicolon
Bug #1910: libhtp 0.5.23 (3.1.x)
Bug #1912: http.memcap reached condition can lead to dead lock
Bug #1913: af-packet fanout detection broken on Debian Jessie
Bug #1933: unix-command socket created with last character missing (3.1.x)
Bug #1934: make install-full does not install tls-events.rules (3.1.x)
Bug #1941: Can't set fast_pattern on tls_sni content (3.1.x)
Bug #1942: dns - back to back requests results in loss of response (3.1.x)
Bug #1943: Check redis reply in non pipeline mode (3.1.x)

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-10 13:34:46 -08:00
Armin Kuster 8a7b759057 samhain: update to 4.2.0
* Changes:

  - New option 'SetAuditdFlags = r|w|x|a' to (re-)define the flags supplied
    to auditd.

  - New option 'PortCheckDevice = device' for the port check module, to monitor
    a device regardless of the address assigned to it.

  - Fix for the case sensitivity of the arguments to the Severity/Class options.

  - Compiler warnings with gcc 6.2 and a few minor bugs have been fixed.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-10 13:34:46 -08:00
Armin Kuster 2c5b79c3e8 nmap: Upgrade package to 7.31
LIC_FILES_CHKSUM change do to yr going from 2015 to 2016 in file.
Added "no update" config option.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-10 13:34:46 -08:00
Armin Kuster d322b32a4e smack: Add new package
V2:
Fix typo and add LDFLAG to makefile

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-10 13:34:46 -08:00
Armin Kuster b68613ae06 suricata: update package to 3.1.2
v2:
rebased against master-next which has 3.1

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 0a795d49ac samhain: recipe cleanup
add a few distro feature checks.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 75bc31d94f package-group: fix tpm package list
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 9fb87c6c73 images: add a client and server image
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 399e636c9f package-group: Add tpm packages
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 2d9a16062b image: at image to help test builds
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster eca59bda74 suricata: package update to 3.1.0
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-10-19 15:37:38 -07:00
Mark Asselstine 5b4ee1ee2c clamav: fixup improper quoting
Commit 217e06badb [clamav: fix gcc 6.x
build failure.] fixed a typo in "PACKAGECONFIG" (was missing the 'G')
but unfortunately the PACKAGECONFIG string was incorrectly formed due
to mismatched quotes. This caused a parsing error:

  ERROR: Unable to parse .../meta-security/recipes-security/clamav/clamav_0.99.2.bb
  ...

Removed the unneeded quotes to fix the parsing issue.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-10-11 20:48:41 -07:00
Jackie Huang 793d60e5fa scapy: upgrade to 2.3.2
* update the SRC_URI since it's been moved
  from bitbucket to github.

* add ptest support

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-10-11 01:39:29 -07:00
Armin Kuster f41ed27588 paxctl: Fix QA warning
WARNING: paxctl-0.9-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '...../build/tmp-glibc/work/core2-64-oe-linux/paxctl/0.9-r0/packages-split/paxctl/sbin/paxctl' [ldflags]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-10-11 01:39:29 -07:00
Joe Slater fdbb174036 paxctl: allow build of paxctl-native
paxctl-native is needed to build paxtest.

Do not use the install target in Makefile for paxctl-native, it will
fail with error:

  install: cannot change ownership of '.../sbin/paxctl': \
  Operation not permitted

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-10-11 01:39:29 -07:00
Armin Kuster 217e06badb clamav: fix gcc 6.x build failure.
./llvm/include/llvm/Support/AlignOf.h:57:24: error: expected unqualified-id before 'alignof'
 static inline unsigned alignof() { return AlignOf<T>::Alignment; }
                        ^~~~~~~

configure --with-system-llvm --with-llvm-linking=dynamic.

define use with meta-oe LLVM3.3 via config option

Fix typo for systemd PACKAGECONFIG

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-10-11 01:39:29 -07:00
Wang Xin d49df5e37c samhain: 4.1.4 -> 4.1.5
1) Upgrade samhain from 4.1.4 to 4.1.5.
2) Add TARGET_CC_ARCH.Fix error.
    ERROR: samhain-server-4.1.5-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/yocto/work001/fnst/wangx/poky/build/tmp/work/i586-poky-linux/samhain-server/4.1.5-r0/packages-split/samhain-server/usr/sbin/yule_setpwd'
    No GNU_HASH in the elf binary: '/yocto/work001/fnst/wangx/poky/build/tmp/work/i586-poky-linux/samhain-server/4.1.5-r0/packages-split/samhain-server/usr/sbin/yulectl' [ldflags]

Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-10-11 01:39:11 -07:00
Jonathan Liu cd59718eb0 libseccomp: update to latest
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-08-20 10:22:59 -07:00
Armin Kuster 0ba8cd8b20 suricata: update to 3.0.2
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
2016-06-26 11:47:29 -07:00
Armin Kuster 7717b77059 tripwire: update to 2.4.3.1
this also fixes clang and gcc 5.3 build issues

remove merged patches

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
2016-06-26 11:47:29 -07:00
Armin Kuster b8319ce072 samhain: update to 4.1.4
4.1.4:
  - Fix for issues with re-evaluation of paths with wildcard patterns:
        - no re-evaluation if no match at process startup
        - if same pattern used for a file=.. and dir=.. directive, only
          one (the first in config file) is re-evaluated

  - Fix for issues with new directories created when inotify is used:
        - recursion depth is not properly set for new directory
        - directory gets watched even if recursion depth should be below zero

4.1.3:
  - Fix for a regression in DNS resolving if samhain is compiled
    with '--enable-static'

  - On Cygwin/Windows, the default for the 'AvoidBlock' option is now 'off'
    because of problems reported for this platform.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
2016-06-26 11:47:29 -07:00
Armin Kuster a49ec3441f nmap: fix several new QA warnings.
WARNING: nmap-7.12-r0 do_package: QA Issue: nmap: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/bin/ndiff
  /usr/bin/nping
  /usr/bin/ncat
  /usr/lib/python2.7
  /usr/lib/python2.7/site-packages
  /usr/lib/python2.7/site-packages/ndiff.pyc
  /usr/lib/python2.7/site-packages/ndiff.py
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nmap: 8 installed and not shipped files. [installed-vs-shipped]

remove crazyness and let the system figure out packaging info
remove ndiff.py* as the compiled version is installed in /usr/bin
  and remove the leftover python site-package cruft.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
2016-06-26 11:47:29 -07:00