Skip to contentSkip to conversation

udev.permissions: symbolic group/owner broken

DISCUSSION Arnd Bergmann 1 participant 1 message Nov 25, 2003

lore
Share & tools
lore
#0 lore raw

I noticed (after debugging for about an hour) that the calls to getgrnam() and getpwnam() in udev-add.c always fail when udev is statically linked to a recent glibc version (here:
Fedora glibc-2.3.2-57 on s390x).

Thinking about it a bit more, I found it to be fairly pointless to have a statically linked /sbin/udev in the root fs when it is not used on initramfs.

The obvious fix is not to link statically when building udev for glibc.

	Arnd <><

=== Makefile 1.38 vs edited ==--- 1.38/Makefile Mon Nov 24 05:38:01 2003
+++ edited/Makefile Tue Nov 25 15:18:36 2003
@@ -106,7 +106,7 @@
endif

# If we are using our version of klibc, then we need to build and link it.
-# Otherwise, use glibc and link statically.
+# Otherwise, use glibc and link dynamically.
ifeq ($(strip $(KLIBC)),true)
KLIBC_DIR = klibc/klibc
INCLUDE_DIR := $(KLIBC_DIR)/include
@@ -130,7 +130,6 @@
LIBC =
CFLAGS += -I$(GCCINCDIR)
LIB_OBJS = -lc
- LDFLAGS = --static
+ LDFLAGS endif

all: $(LIBC) $(ROOT)

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel