mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-08 16:00:32 +00:00
ndisc6: chmod in do_install and remove unnecessary pkg_postinst
We can use chmod to set the SUID bit for applications in the do_install task. If we do so, the pkg_postinsts are no longer needed. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
@@ -49,14 +49,8 @@ servers through slateless IPv6 autoconfiguration."
|
|||||||
|
|
||||||
do_install_append () {
|
do_install_append () {
|
||||||
rm -rf ${D}${localstatedir}
|
rm -rf ${D}${localstatedir}
|
||||||
}
|
# Enable SUID bit for applications that need it
|
||||||
# Enable SUID bit for applications that need it
|
chmod 4555 ${D}${bindir}/rltraceroute6
|
||||||
pkg_postinst_${PN}-rltraceroute6 () {
|
chmod 4555 ${D}${bindir}/ndisc6
|
||||||
chmod 4555 ${bindir}/rltraceroute6
|
chmod 4555 ${D}${bindir}/rdisc6
|
||||||
}
|
|
||||||
pkg_postinst_${PN}-ndisc6 () {
|
|
||||||
chmod 4555 ${bindir}/ndisc6
|
|
||||||
}
|
|
||||||
pkg_postinst_${PN}-rdisc6 () {
|
|
||||||
chmod 4555 ${bindir}/rdisc6
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user