FWK: Adaptations for jethro
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 14 Oct 2016 11:25:07 +0000 (13:25 +0200)
committerStephane Desneux <stephane.desneux@iot.bzh>
Mon, 27 Mar 2017 13:33:39 +0000 (15:33 +0200)
commite991cf3a068e936f4a49a9dd4973c52a64bc4ac2
tree2067355091742ffd1b45194b3f5701228bcbef1c
parent7c78310bbf21d3e94e673434df393d669c4ef882
FWK: Adaptations for jethro

Since introduction of ambient capabilities,
systemd deprecated the use of Capabilities.
With systemd 229 activated with krogoth,
the use of Capabilities does nothing.

This commits avoids to use SecureBits and Capabilities.
It now relies on the fact that post installations are
setting the capabilities to the file:

- setcap cap_mac_override,cap_dac_override=ep          afm-system-daemon
- setcap cap_mac_override,cap_mac_admin,cap_setgid=ep  afm-user-daemon

Using p (permitted) instead of i (inherited) that was
previously used.

It also includes evolutions of the security model to be synchronized
with the deletion of 'User'. The recommended version to use now
is the commit 20bbb97f6d5400b126ae96ef446c3e60c7e16285.

Change-Id: Id24ce7c7651e2fdf8d66b6e8286268e7d88508a0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-app-framework/recipes-core/af-main/af-main_1.0.bb
meta-app-framework/recipes-core/af-main/af-main_1.0.inc
meta-app-framework/recipes-core/security-manager/security-manager/0001-Adapt-rules-to-AGL.patch [new file with mode: 0644]
meta-app-framework/recipes-core/security-manager/security-manager_%.bbappend [new file with mode: 0644]