summaryrefslogtreecommitdiffstats
path: root/recipes-security/AppArmor
Commit message (Collapse)AuthorAgeFilesLines
* reorg: move mac recipes to recipes-macArmin Kuster2019-03-3110-890/+0
| | | | Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: backport a patch to fix tool paths instead of seddingRoss Burton2019-01-172-2/+38
| | | | | | | | Sedding is ugly, and as upstream have already fixed this cherry-pick the patch instead. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: if Perl is disabled remove perl-using scriptsRoss Burton2019-01-171-0/+5
| | | | | | | aa-notify uses the Perl bindings, so isn't usable when perl is disabled. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: systemd.bbclas is useful even when disabledRoss Burton2019-01-171-7/+3
| | | | | | | | The systemd bbclass will remove any systemd files that have been installed if systemd is disabled, so always install the files and always inherit. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: remove pointless ALLOW_EMPTYRoss Burton2019-01-171-2/+0
| | | | | | | ${PN} has content, so there's no need to set ALLOW_EMPTY_${PN}. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: no need to conditionalise PACKAGESRoss Burton2019-01-171-1/+1
| | | | | | | | A package with no content is not generated, so there's no need to conditionalise assignments to PACKAGES. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: use manpages classRoss Burton2019-01-171-3/+3
| | | | | | | | The manpages class handles enabling/disabling the man pages based on the api-documentation DISTRO_FEATURE, and ensures that mandb is called. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: remove redundant SRoss Burton2019-01-171-2/+0
| | | | | | | This is the default value, so remove it. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: enable static libraries neatlyRoss Burton2019-01-171-2/+1
| | | | | | | | No need to fiddle with the configure arguments as we can just neuter disable-static.inc. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: add missing bash dependencyRoss Burton2019-01-171-1/+1
| | | | | | | | testsuite/parser/tst/minimize.sh is a bash script, so until it is reviewed add a bash dependency to apparmor-ptest. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: Remove tab indentations in python codeRobert Yang2018-12-061-2/+2
| | | | | | | | | | Use 4 spaces to replace a tab. Fixed: apparmor_2.12.bb: python should use 4 spaces indentation, but found tabs in apparmor_2.12.bb, line 49 Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: update to 2.12Armin Kuster2018-09-171-2/+2
| | | | Signed-off-by: Armin Kuster <akuster808@gmail.com>
* Fix build issue for apparmor when systemd is usedJinliang Li2018-06-111-0/+5
| | | | | | | | When systemd is used as system init manager, there is a build issue complains "can't found apparmor.service". This patch fix it. Signed-off-by: Jinliang Li <jinliang.li@linux.alibaba.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: fix a few build issuesArmin Kuster2017-09-151-2/+5
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Apparmor: add apache2 to PACKAGECONF and check for webserver layerArmin Kuster2017-09-151-4/+22
| | | | | | Don't want to add layer depends for one package unless needed. Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: Additional runtime fixesTom Rini2017-08-132-8/+28
| | | | | | | | | | | | | | | | | | | - 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>
* apparmor: Rework such that the utilities are functional by defaultTom Rini2017-07-313-7/+54
| | | | | | | | | | | | | | | | | | | | | | 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>
* apparmor: fix python packaging issueArmin Kuster2017-06-011-2/+2
| | | | | | | | | | | | | | 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>
* apparmor: update to 2.11.0 plus ptestArmin Kuster2017-04-063-116/+130
| | | | | | | | | update to 2.11 Add basic ptest support v2: remove none existent file Signed-off-by: Armin Kuster <akuster808@gmail.com>
* apparmor: Add new packageArmin Kuster2017-02-186-0/+751
Signed-off-by: Armin Kuster <akuster808@gmail.com>