Opkg wrong file ownership?

I used to be able to opkg update && opkg install fping and fping would just work. But recently the fping package seems to install /usr/bin/fping owned by user:group 110:114. Even though it has SUID bit set because of the ownership it doesn't work until ownership is changed to root:root

# ll /usr/bin/fping
-rwsr-xr-x    1 110      114          32973 Sep  5 23:31 /usr/bin/fping*

Has anything changed recently in how opkg install works?

yes... master had a change in the way opkg sets file permissions... check the fping Makefile and read this and subsequent adjustments on the mailing list / git log... ( or sit back and wait for teething issues to iron themselves out )...

2 Likes

other obviously effected packages... PKG_FILE_MODES

######################################### grep -r PKG_FILE_MODES package/
package/utils/busybox/Makefile:  PKG_FILE_MODES:=/bin/busybox:root:root:4755

######################################## grep -r INSTALL_SUID feeds
feeds/packages/utils/mariadb/Makefile
feeds/packages/net/iputils/Makefile
feeds/packages/net/fping/Makefile
feeds/packages/net/apache/Makefile
feeds/packages/admin/schroot/Makefile

######################################## grep -r INSTALL_SUID .
rules.mk:INSTALL_SUID:=install -m4755

######################################## rules.mk | grep ^INSTALL_SUID
INSTALL_SUID:=install -m4755


[root@dca632 /usbstick 46°]# opkg install iputils-ping
[root@dca632 /usbstick 45°]# which ping
/usr/bin/ping
[root@dca632 /usbstick 45°]# ls -la /usr/bin/ping 
-rwsr-xr-x    1 network  102          58084 Sep  8 06:42 /usr/bin/ping*
[root@dca632 /usbstick 45°]# ping google.com
ping: socket: Operation not permitted

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.