move hidepid to separate package
This commit is contained in:
parent
b5a3287410
commit
784929a030
@ -29,6 +29,11 @@ OS_TOOLS = " \
|
||||
nano \
|
||||
"
|
||||
|
||||
# system hardening
|
||||
HARDENING = " \
|
||||
hidepid \
|
||||
"
|
||||
|
||||
# helium base packages
|
||||
HELIUM_BASE = " \
|
||||
"
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI = "file://hidepid.sh"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install:append () {
|
||||
install -m 0755 ${WORKDIR}/hidepid.sh ${D}${sysconfdir}/init.d
|
||||
update-rc.d -r ${D} hidepid.sh start 10 S .
|
||||
}
|
||||
12
recipes-hardening/hidepid/hidepid_1.0.bb
Normal file
12
recipes-hardening/hidepid/hidepid_1.0.bb
Normal file
@ -0,0 +1,12 @@
|
||||
SUMMARY = "hidepid - hide other users' processes from /proc"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
SRC_URI = "file://hidepid.sh"
|
||||
|
||||
DEPENDS = "update-rc.d-native"
|
||||
|
||||
do_install() {
|
||||
install -D -m 0755 ${WORKDIR}/hidepid.sh ${D}${sysconfdir}/init.d/hidepid.sh
|
||||
update-rc.d -r ${D} hidepid.sh start 10 S .
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user