Commit Graph

218 Commits

Author SHA1 Message Date
Armin Kuster 86b2a2b2ef build-image: remove ROOTFS_PKGMANAGE_BOOTSTRAP
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-27 14:57:26 -07:00
Armin Kuster 5b63111b85 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-27 14:57:26 -07:00
Armin Kuster da2d6cd808 trousers: Fix musl compile error
use POSIX getpwent instead of getpwent_r
This was causing the libtspi to have the getpwent_r with when loaded via tpm-tools, it would fail.

[ Yocto #11095]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-27 14:57:26 -07:00
Armin Kuster 6714e7672f swtpm: fix musl build issues
add two fixes for musl build issues.

also update to latest tip

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-27 14:57:26 -07:00
Armin Kuster 6c9a5826f0 tpm-tools: updatet 1.3.9.1
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-27 14:57:26 -07:00
Benjamin Gaignard 27d461b85c swtpm: depends on expect-native and socat-native
The configure script checks for expect and socat and
fails when it is not present.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-03-27 14:57:26 -07:00
Armin Kuster 3b343eb34d 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-27 14:57:16 -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
Armin Kuster 21e1f1177c libtpm: Fix arm build issues
backport two upstream patches and remove local verison

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -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 9498fc1db2 python-pycrypto: remove app as its now in meta-oe
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
Patrick Ohly bb03811c7d swtpm: update to latest tip
Brings in instructions for setting the log level. Setting the log level
with --log file=...,level=1 is necessary at the moment before anything
gets written to the log. Even errors are suppressed by default.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly 6cf0415d8a swtpm-wrappers: simplify using swtpm-native
Native tools exist in recipe specific sysroots and are normally
not meant to be called from outside a build. But that's what we
need to do when using swtpm-native together with qemu, so these
wrappers make that possible by setting up the necessary environment
and hiding the internal paths.

Invoking swtpm_setup.sh gets some special support: swtpm_setup.sh runs
two daemons, tcsd and swtpm, of which tcsd insists on running as root
or tss. In practice, running as the normal user is perfectly
fine. Instead of patching the upstream source code, the approach take
here is to run under pseudo.

Usage examples:

$ bitbake swtpm-wrappers
$ mkdir -p my-machine/myvtpm0
$ tmp-glibc/work/x86_64-linux/swtpm-wrappers/1.0-r0/swtpm_setup_oe.sh --tpm-state my-machine/myvtpm0
Starting vTPM manufacturing as root:root @ Mon 16 Jan 2017 04:09:21 PM CET
TPM is listening on TCP port 55675.
-rw------- 1 root root 65 Jan 16 16:09 /tmp/tmp.2yJBKTTwRk
Ending vTPM manufacturing @ Mon 16 Jan 2017 04:09:21 PM CET

The resulting "my-machine/myvtpm0" can then be used with swtpm (this
time, it really has to be running as root because it uses CUSE to
create /dev/vtpm0, and an absolute path is needed for the tpm state
dir) and qemu-tpm (patches not currently in OE-core, have to be
applied manually):

$ sudo tmp-glibc/work/x86_64-linux/swtpm-wrappers/1.0-r0/swtpm_cuse_oe.sh -n vtpm0 --tpmstate dir=`pwd`/my-machine/myvtpm0
$ sudo chmod a+rw /dev/vtpm0
$ runqemu ... 'qemuparams=-tpmdev cuse-tpm,id=tpm0,path=/dev/vtpm0 -device tpm-tis,tpmdev=tpm0'

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly 520b3a44e0 swtpm: cuse packageconfig
The CUSE support in swtpm does not depend on selinux. It is needed
for simulating a virtual TPM, one of the use cases for swtpm-native, so
enable it by default.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly 8d0cc9b004 swtpm: fix compiler format warning
When building for x86-64, gcc complains:

tpm_ioctl.c:866:9: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=]
|          printf("ptm capability is 0x%llx\n", (uint64_t)devtoh64(is_chardev, cap));
|          ^
| cc1: all warnings being treated as errors

Casting to "long long unsigned" matches the format specifier in all
cases, including those where "long long" is larger than 64 bits.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly b70a046ce4 swtpm: depends on tpm-tools
The configure script checks for tpm_nvdefine from tpm-tools and fails
when it is not present.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly cdeabd9d78 swtpm: enable native and nativesdk flavors
For use with qemu-tpm as described in the swtpm main README, swtpm
must be compiled natively. nativesdk is added just in case that
someone wants to add this to an SDK.

The fix_lib_search_path.patch was recently removed during the version
update, but it is still needed when building natively. Here's a
version that applies cleanly again.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly f3ce860a35 trousers: tcsd.conf must be owned tss:tss
The upstream dist/Makefile.am ensures that /etc/tcsd.conf is owned by
tss:tss, and that must not be changed because otherwise tcsd refuses
to start.

In addition, tss group and user should be added as special system
group resp. user, because they are not normal users.  This also avoids
the host-user-contaminated QA warning because the "tss" user will
typically not get assigned a UID from the same range as the host user
that is used for building.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly 4a60f0f9ea trousers: recommend tcsd
Installing tpm-tools for tools like tpm_takeown pull in the libtspi
package, but the resulting system is not functional unless the tcsd
(from the main "trousers" package) also gets installed. A RRECOMMENDS
entry for that takes care of that automatically.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Patrick Ohly 20f06715be trousers: missing libtspi.so.1 in libtspi package
The soname of libtspi.so is "libtspi.so.1" and therefore apps
linked against that library depend on the libtspi.so.1 symlink
to find the library.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster a764c5972c swtpm: update to tip
fix signed build issues

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster 33f4ac7996 libtpm: update to tip
fix several build issues

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster b07a08eac3 trousers: update to 0.3.14
convert to git and remove incorperated patches

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster bacf203b87 tpm-tools: update to 1.3.9
remove incorperated patches.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster 3ca5833bf3 qemu: use wildcard for PV
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster 543f86aded tpm2.0-tss: fix musl build error
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
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 6edbdc7a34 yocto-kernel: add apparmor fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
André Draszik 27420dbbd2 trousers: fix musl compilation
Backport patches to fix compilation.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
2016-12-15 13:26:19 -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 b9f288581d smack kernel: add smack kernel config fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-10 13:34:46 -08:00
Armin Kuster 5d545800ba python-pycrypto: simplify to use pypi class
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07: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 019ffeebb4 libnetaddr-ip-perl: remove package. not used by anyone in this layer
latest version does not build either

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 2431acfc95 linux-yocto-4.8: add tpm fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 67cfe62b20 tpm-tools: Fix gcc6 compile issue
.8/src/tpm_mgmt/tpm_present.c
| ../../../tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c: In function 'main':
| ../../../tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c:358:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
|      if (szTpmPasswd && !isWellKnown)
|      ^~
| ../../../tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c:360:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
|   return iRc;
|   ^~~~~~

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 17d39a00a2 layer.conf: Add filesystem depends
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 dbf381e349 qemu: Add tpm flag
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster caa6bc74fb tpm2simulator: add package
V2:
Change ${S} and add OECMAKE_SOURCEPATH
use ${S} instead of ${WORKDIR} in  sed cmd

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 9e5c7358ad swtpm: add new package
V2:
remove CACHED_CONFIGUREVARS, not needed after all
fix typo in selinux option

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Armin Kuster 4995108433 libtpm: add new package
V2:
- use SRCPV

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00