Commit Graph

404 Commits

Author SHA1 Message Date
Armin Kuster 89683b4fee 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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-06-01 08:01:34 -07:00
Jackie Huang 4f2a08e3fa 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-06-01 08:01:34 -07:00
Jackie Huang 37c47c164e 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-06-01 08:01:34 -07:00
André Draszik 20f2f496c2 layer.conf: fix typo (meta-filesystems vs mete-filesystems)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-06-01 08:01:28 -07:00
Peter Lei 43ae8fc27e 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:37:35 -07:00
Armin Kuster 9898871816 tor: add recipe
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-15 14:55:58 -07:00
Armin Kuster b20c1242f7 layer-conf: Use *_FEATURES in LAYERDEPENDS
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 08a233b61e security-core package group: add few more apps
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 6ae8f496a6 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-14 07:56:52 -07:00
Armin Kuster e0e46368e9 sssd: update SRC_URI as git.fedorahosted.org shut down
build fixes too

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 1671f7d7e2 tpm2: package groups fixes
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 6d7b18dc22 linux-stable: fix module selections
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 99d6c136f2 tpm-image: used for testing for now.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster b73918a90e kernel tpm rework
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 52f712a3fe tpm-i2c: some systems us i2c TPM
add modules and i2c support

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster f8973e152a tpm packagegroups: split into logical units
this should help mitgate the need to pull in too many layers
if swtpm in not wanted

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster a07aa7e93e packagegroup: remove tpm components
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 52cd8a8747 meta-tpm: add base package group as was in meta-security
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 3e0671d1ea change tpm from distro to machine feature
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:52 -07:00
Armin Kuster 4585f1e8c9 tpm: move to a sub layer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:43 -07:00
Patrick Ohly 6eac21cf4a swtpm-wrappers-native.bb: need netstat
netstat from net-tools-native is needed for swtpm_setup.sh, which uses
it to check whether the swtpm daemon has started. The scripts hangs in
a loop during startup when netstat is missing.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-07 15:17:28 -07:00
Armin Kuster 6b55b1882b freediameter: Add recipe
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-07 15:17:22 -07:00
Patrick Ohly 3bcca12131 swtpm-wrappers: fix naming convention violation
Native recipes must be called <foo>-native. This is more than just a
recommendation, there's actual code which checks for the suffix.

Not following that rule broke swtpm-wrappers when using the "usrmerge"
DISTRO_FEATURE, because the code in native.bbclass which cleans up
DISTRO_FEATURES for native recipes was skipped and thus swtpm-wrappers
ended up using different paths than the other native recipes.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-25 18:14:24 -07:00
Armin Kuster 5f68ae6d28 tpm2.0-tss: update to tip.
remove merged patch now in tip

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-25 18:14:24 -07:00
Armin Kuster 41936bb4cf samhain: update to 4.2.1
remove patch integrated into update

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-25 18:14:19 -07:00
Amarnath Valluri 66d8abf643 swtpm: update to latest tip
Pull in changes to support passing client control sockets(--ctrl
type=unixio,clientfd=<fd>), that allows to fork swtpm and communicate using
socketpair.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-13 13:56:55 -07:00
Armin Kuster 6674749274 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-06 10:39:42 -07:00
Armin Kuster 25f50bd510 linux-yocto: add 4.10 kernel support
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster 8f0f8eeea8 libseccomp: update to 2.3.2
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster d832cd0712 tpm2.0-tss: fix musl build issue
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster aa9fa90288 kernel: mv 4.8 kernel to 4.9
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster 794d8e89ac tpm2.0-tss: update to latest
[v2]:
include new hash

LICENSE file changes do to removal of TCG

minor changes do to configure and makefile updates

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster 78af65abb4 tpm2.0-tools: update to latest
minor changes to reflect configure/makefile updates

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster e16ae4d080 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:57:26 -07:00
Benjamin Gaignard 4c4fa8c503 tpm2.0-tss: install resourcemgr service
Install systemd resource.mgr service and it needed user/group.

version 2:
- do not hardcode sbin directory in a patch but use ${sbindir} instead

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
2017-03-27 14:57:26 -07:00
Patrick Ohly 1cca28c3d5 swtpm-wrappers: wrap more commands
Soon it might be possible to let qemu start swtpm directly, without
requiring root privileges as for swtpm_cuse. For that to work
we also need to wrap the swtpm binary. Just in case we now also
do it for everything.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2017-03-27 14:57:26 -07:00
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