fix hidepid
This commit is contained in:
parent
0e8678e51b
commit
cb86500968
@ -5,9 +5,7 @@
|
|||||||
# additionaly harden /proc a little bit more
|
# additionaly harden /proc a little bit more
|
||||||
PROCOPTS="rw,nosuid,nodev,noexec,relatime,hidepid=2"
|
PROCOPTS="rw,nosuid,nodev,noexec,relatime,hidepid=2"
|
||||||
if mount -o remount,$PROCOPTS /proc; then
|
if mount -o remount,$PROCOPTS /proc; then
|
||||||
success()
|
success; echo " /proc remouted with $PROCOPTS"
|
||||||
echo " /proc remouted with $PROCOPTS"
|
|
||||||
else
|
else
|
||||||
failure()
|
failure; echo " /proc not remounted, hidepid not enabled"
|
||||||
echo "/proc not remounted, hidepid not enabled"
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -5,9 +5,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ad
|
|||||||
SRC_URI = "file://hidepid.sh"
|
SRC_URI = "file://hidepid.sh"
|
||||||
|
|
||||||
inherit allarch
|
inherit allarch
|
||||||
DEPENDS = "update-rc.d-native"
|
|
||||||
|
INITSCRIPT_NAME = "hidepid"
|
||||||
|
INITSCRIPT_PARAMS = "start 10 S ."
|
||||||
|
inherit update-rc.d
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -D -m 0755 ${WORKDIR}/hidepid.sh ${D}${sysconfdir}/init.d/hidepid.sh
|
install -D -m 0755 ${WORKDIR}/hidepid.sh ${D}${sysconfdir}/init.d/hidepid
|
||||||
update-rc.d -r ${D} hidepid.sh start 10 S .
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user