Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 15838] New: dhcp server creates symlinks to /tmp on host
@ 2023-11-01 22:01 bugzilla
  2024-06-15 15:13 ` [Buildroot] [Bug 15838] " bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2023-11-01 22:01 UTC (permalink / raw)
  To: buildroot

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: unassigned@buildroot.uclibc.org
          Reporter: jonas.d.karlsson@gmail.com
                CC: buildroot@uclibc.org
  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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-15 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 22:01 [Buildroot] [Bug 15838] New: dhcp server creates symlinks to /tmp on host bugzilla
2024-06-15 15:13 ` [Buildroot] [Bug 15838] " bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox