diff options
| author | Armin Kuster <akuster@mvista.com> | 2014-07-12 04:29:04 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2014-08-20 21:18:48 -0700 |
| commit | 43ce4b48896668c092e30a3417ea52a70629774b (patch) | |
| tree | daa75672608ec47cfdaae8a75dc6d46dc077a979 | |
| parent | 621f30abedf14f1e6b552c2f646231c86bbe9f60 (diff) | |
| download | meta-security-43ce4b48896668c092e30a3417ea52a70629774b.tar.gz | |
tomoyo: ccs-tools
Add userland support program ccs-tools
V2:
Added RDEPEND on systemd
Fixed Description
Moved man page to doc packaged
Added Requiered distro feature on kernel component.
Fixed typo in path for init program
Signed-off-by: Armin Kuster <akuster@mvista.com>
| -rw-r--r-- | recipes-security/ccs-tools/README | 12 | ||||
| -rw-r--r-- | recipes-security/ccs-tools/ccs-tools_1.8.3.bb | 50 |
2 files changed, 62 insertions, 0 deletions
diff --git a/recipes-security/ccs-tools/README b/recipes-security/ccs-tools/README new file mode 100644 index 0000000..4a4faa7 --- /dev/null +++ b/recipes-security/ccs-tools/README | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Documentation: | ||
| 2 | http://tomoyo.sourceforge.jp/1.8/index.html.en | ||
| 3 | |||
| 4 | |||
| 5 | To start via command line add: | ||
| 6 | |||
| 7 | " security=tomoyo TOMOYO_trigger=/usr/lib/systemd/systemd" | ||
| 8 | |||
| 9 | To initialize: | ||
| 10 | /usr/lib/ccs/init_policy | ||
| 11 | |||
| 12 | DISTRO_FEATURES_append = " tomoyo" | ||
diff --git a/recipes-security/ccs-tools/ccs-tools_1.8.3.bb b/recipes-security/ccs-tools/ccs-tools_1.8.3.bb new file mode 100644 index 0000000..92f82ef --- /dev/null +++ b/recipes-security/ccs-tools/ccs-tools_1.8.3.bb | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | SUMMARY = "Tomoyo" | ||
| 2 | DESCRIPTION = "TOMOYO Linux is a Mandatory Access Control (MAC) implementation for Linux that can be used to increase the security of a system, while also being useful purely as a system analysis tool. \nTo start via command line add: \nsecurity=tomoyo TOMOYO_trigger=/usr/lib/systemd/systemd \nTo initialize: \n/usr/lib/ccs/init_policy" | ||
| 3 | |||
| 4 | SECTION = "security" | ||
| 5 | LICENSE = "GPL-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://README.ccs;md5=5b80632c6a2a3b7fa92ea46eff15bee9" | ||
| 7 | |||
| 8 | DEPENDS = "ncurses" | ||
| 9 | |||
| 10 | SRC_URI = "http://osdn.dl.sourceforge.jp/tomoyo/49693/ccs-tools-1.8.3-20130406.tar.gz" | ||
| 11 | |||
| 12 | SRC_URI[md5sum] = "ffff535584cdf9ae28b85061c32e5618" | ||
| 13 | SRC_URI[sha256sum] = "1e4129b59cd7fdb963962af7f2cccf4a66c77a4b0948f67320b569aaf6585fcf" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/${PN}" | ||
| 16 | |||
| 17 | inherit distro_features_check | ||
| 18 | |||
| 19 | do_make(){ | ||
| 20 | oe_runmake USRLIBDIR=${libdir} all | ||
| 21 | cd ${S}/kernel_test | ||
| 22 | oe_runmake all | ||
| 23 | } | ||
| 24 | |||
| 25 | do_install(){ | ||
| 26 | oe_runmake INSTALLDIR=${D} USRLIBDIR=${libdir} install | ||
| 27 | } | ||
| 28 | |||
| 29 | PACKAGE="${PN} ${PN}-dbg ${PN}-doc" | ||
| 30 | |||
| 31 | FILES_${PN} = "\ | ||
| 32 | ${sbindir}/* \ | ||
| 33 | ${base_sbindir}/* \ | ||
| 34 | ${libdir}/* \ | ||
| 35 | " | ||
| 36 | |||
| 37 | FILES_${PN}-doc = "\ | ||
| 38 | ${mandir}/man8/* \ | ||
| 39 | " | ||
| 40 | |||
| 41 | FILES_${PN}-dbg = "\ | ||
| 42 | ${base_sbindir}/.debug/* \ | ||
| 43 | ${sbindir}/.debug/* \ | ||
| 44 | ${libdir}/.debug/* \ | ||
| 45 | ${libdir}/ccs/.debug/* \ | ||
| 46 | /usr/src/debug/* \ | ||
| 47 | " | ||
| 48 | |||
| 49 | REQUIRED_DISTRO_FEATURES ?=" tomoyo" | ||
| 50 | RDEPEND += "systemd" | ||
