diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2013-10-31 14:29:45 +0800 |
|---|---|---|
| committer | Joe MacDonald <joe@deserted.net> | 2013-10-31 13:00:48 -0400 |
| commit | edd499dfdba1a944497185af67e307d5cef7ab9e (patch) | |
| tree | a849d3b989b54666ba47e938fbd34430abf23157 | |
| parent | 7f1b4775ef198d86821997632bf6e38305f3fa1b (diff) | |
| download | meta-openembedded-edd499dfdba1a944497185af67e307d5cef7ab9e.tar.gz | |
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>
| -rw-r--r-- | meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb index d753912133..a958e37bc5 100644 --- a/meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb +++ b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.2.bb | |||
| @@ -49,14 +49,8 @@ servers through slateless IPv6 autoconfiguration." | |||
| 49 | 49 | ||
| 50 | do_install_append () { | 50 | do_install_append () { |
| 51 | rm -rf ${D}${localstatedir} | 51 | rm -rf ${D}${localstatedir} |
| 52 | } | 52 | # Enable SUID bit for applications that need it |
| 53 | # Enable SUID bit for applications that need it | 53 | chmod 4555 ${D}${bindir}/rltraceroute6 |
| 54 | pkg_postinst_${PN}-rltraceroute6 () { | 54 | chmod 4555 ${D}${bindir}/ndisc6 |
| 55 | chmod 4555 ${bindir}/rltraceroute6 | 55 | chmod 4555 ${D}${bindir}/rdisc6 |
| 56 | } | ||
| 57 | pkg_postinst_${PN}-ndisc6 () { | ||
| 58 | chmod 4555 ${bindir}/ndisc6 | ||
| 59 | } | ||
| 60 | pkg_postinst_${PN}-rdisc6 () { | ||
| 61 | chmod 4555 ${bindir}/rdisc6 | ||
| 62 | } | 56 | } |
