From f72f50bac504928301baca53a4dc43d9ec08fe61 Mon Sep 17 00:00:00 2001 From: tripolar Date: Sun, 22 Sep 2013 15:28:04 +0000 Subject: [PATCH] [packags] shadow-su: ash doesn't support the renaming of a process like execve("/bin/ash", ["-su"], [/* 10 vars */]) = 0 the error is also described here but no fix is provided http://comments.gmane.org/gmane.linux.busybox/33618 fix it by turing off process renaming in login.defs Signed-off-by: Peter Wagner git-svn-id: svn://svn.openwrt.org/openwrt/packages@38121 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/shadow/Makefile | 2 +- utils/shadow/patches/001-busybox_ash.patch | 13 +++++++++++++ ...le-ruser-lookup.patch => 002-disable-ruser-lookup.patch} | 0 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 utils/shadow/patches/001-busybox_ash.patch rename utils/shadow/patches/{004-disable-ruser-lookup.patch => 002-disable-ruser-lookup.patch} (100%) diff --git a/utils/shadow/Makefile b/utils/shadow/Makefile index fa319252f..506e51234 100644 --- a/utils/shadow/Makefile +++ b/utils/shadow/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=shadow PKG_VERSION:=4.1.5.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://pkg-shadow.alioth.debian.org/releases diff --git a/utils/shadow/patches/001-busybox_ash.patch b/utils/shadow/patches/001-busybox_ash.patch new file mode 100644 index 000000000..f21eee1bf --- /dev/null +++ b/utils/shadow/patches/001-busybox_ash.patch @@ -0,0 +1,13 @@ +diff --git a/etc/login.defs b/etc/login.defs +index 5b6fab3..79eeccf 100644 +--- a/etc/login.defs ++++ b/etc/login.defs +@@ -111,7 +111,7 @@ NOLOGINS_FILE /etc/nologin + # command is "-su". If not defined, then "ps" would display the + # name of the shell actually being run, e.g. something like "-sh". + # +-SU_NAME su ++#SU_NAME su + + # + # *REQUIRED* diff --git a/utils/shadow/patches/004-disable-ruser-lookup.patch b/utils/shadow/patches/002-disable-ruser-lookup.patch similarity index 100% rename from utils/shadow/patches/004-disable-ruser-lookup.patch rename to utils/shadow/patches/002-disable-ruser-lookup.patch -- 2.11.0