New: dhcp server creates symlinks to /tmp on host
https://bugs.busybox.net/show_bug.cgi?id=15838
Bug ID: 15838
Summary: dhcp server creates symlinks to /tmp on host
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
In package/dhcp/dhcp.mk this section can be found:
ifeq ($(BR2_PACKAGE_DHCP_SERVER),y)
define DHCP_INSTALL_CTL_LIBS
$(MAKE) -C $(@D)/dhcpctl install-exec DESTDIR=$(TARGET_DIR)
endef
define DHCP_INSTALL_SERVER
mkdir -p $(TARGET_DIR)/var/lib
(cd $(TARGET_DIR)/var/lib; ln -snf /tmp dhcp)
$(MAKE) -C $(@D)/server DESTDIR=$(TARGET_DIR) install-sbinPROGRAMS
$(INSTALL) -m 0644 -D package/dhcp/dhcpd.conf \
$(TARGET_DIR)/etc/dhcp/dhcpd.conf endef
endif
The symlink that is created from /var/lib/dhcp to /tmp seem to cause a symlink to the host /tmp which creates access privilege problems.
Shouldn't the symlink be to ../../tmp rather than /tmp like the misc symlink under /var/lib? See below
cd output/target/var/lib
ls -al
drwxr-xr-x 2 jonkar jonkar 4096 nov 1 17:09 arpd lrwxrwxrwx 1 jonkar jonkar 4 nov 1 18:27 dhcp -> /tmp lrwxrwxrwx 1 jonkar jonkar 9 nov 1 16:13 misc -> ../../tmp
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15838] dhcp server creates symlinks to /tmp on host
https://bugs.busybox.net/show_bug.cgi?id=15838
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #1 from Yann E. MORIN <[email protected]> --- Thank you for your report.
The issue tracker for the Buildroot project has been moved to the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old tracker. If you believe your issue is still relevant, please open one in the new issue tracker.
Thank you!
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot