Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/busybox

Buildroot jacmet at uclibc.org 1 participant 1 message Jan 30, 2007

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2007-01-30 05:37:21 -0800 (Tue, 30 Jan 2007) New Revision: 17669

Log:
busybox 1.4.0 support files

Added:
trunk/buildroot/package/busybox/busybox-1.4.0-conf.patch trunk/buildroot/package/busybox/busybox-1.4.0-libnetlink.patch trunk/buildroot/package/busybox/busybox-1.4.0-parse_config_file.patch trunk/buildroot/package/busybox/busybox-1.4.0-syslogd-n.patch trunk/buildroot/package/busybox/busybox-1.4.0-tar.patch trunk/buildroot/package/busybox/busybox-1.4.0.config

Changeset:
Added: trunk/buildroot/package/busybox/busybox-1.4.0-conf.patch
===================================================================

buildroot/package/busybox/busybox-1.4.0-conf.patch +37 -0
@@ -0,0 +1,37 @@
+--- busybox-1.4.0/applets/applets.c	Fri Jan 19 22:23:11 2007
++++ busybox-1.4.0-conf/applets/applets.c	Wed Jan 24 10:15:49 2007
+@@ -340,20 +340,26 @@
+ 		if (sct) {
+ 			mode_t m = sct->m_mode;
+ 
+-			if (sct->m_uid == ruid)       /* same uid */
++			if (sct->m_uid == ruid)
++				/* same uid */
+ 				m >>= 6;
+-			else if ((sct->m_gid == rgid) || ingroup(ruid, sct->m_gid))  /* same group / in group */
++			else if ((sct->m_gid == rgid) || ingroup(ruid, sct->m_gid))
++				/* same group / in group */
+ 				m >>= 3;
+ 
+ 			if (!(m & S_IXOTH))           /* is x bit not set ? */
+ 				bb_error_msg_and_die("you have no permission to run this applet!");
+ 
+-			if ((sct->m_mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) {     /* *both* have to be set for sgid */
+-				xsetgid(sct->m_gid);
+-			} else xsetgid(rgid);                /* no sgid -> drop */
+-
+-			if (sct->m_mode & S_ISUID) xsetuid(sct->m_uid);
+-			else xsetuid(ruid);                  /* no suid -> drop */
++			if (sct->m_gid != 0) {
++				/* _both_ have to be set for sgid */
++				if ((sct->m_mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) {
++					xsetgid(sct->m_gid);
++				} else xsetgid(rgid); /* no sgid -> drop */
++			}
++			if (sct->m_uid != 0) {
++				if (sct->m_mode & S_ISUID) xsetuid(sct->m_uid);
++				else xsetuid(ruid); /* no suid -> drop */
++			}
+ 		} else {
+ 			/* default: drop all privileges */
+ 			xsetgid(rgid);

Added: trunk/buildroot/package/busybox/busybox-1.4.0-libnetlink.patch
===================================================================

buildroot/package/busybox/busybox-1.4.0-libnetlink.patch +19 -0
@@ -0,0 +1,19 @@
+--- busybox-1.4.0/networking/libiproute/libnetlink.h	Fri Jan 19 22:22:58 2007
++++ busybox-1.4.0-libnetlink/networking/libiproute/libnetlink.h	Tue Jan 23 00:30:45 2007
+@@ -2,6 +2,9 @@
+ #ifndef __LIBNETLINK_H__
+ #define __LIBNETLINK_H__ 1
+ 
++#include <linux/types.h>
++/* We need linux/types.h because older kernels use __u32 etc
++ * in linux/[rt]netlink.h. 2.6.19 seems to be ok, though */
+ #include <linux/netlink.h>
+ #include <linux/rtnetlink.h>
+ 
+@@ -37,6 +40,4 @@
+ 
+ extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
+ 
+-
+ #endif /* __LIBNETLINK_H__ */
+-

Added: trunk/buildroot/package/busybox/busybox-1.4.0-parse_config_file.patch
===================================================================

buildroot/package/busybox/busybox-1.4.0-parse_config_file.patch +11 -0
@@ -0,0 +1,11 @@
+--- busybox-1.4.0/applets/applets.c	Fri Jan 19 22:23:11 2007
++++ busybox-1.4.0-parse_config_file/applets/applets.c	Tue Jan 23 21:35:00 2007
+@@ -320,7 +320,7 @@
+ }
+ 
+ #else
+-#define parse_config_file()
++#define parse_config_file() ((void)0)
+ #endif /* CONFIG_FEATURE_SUID_CONFIG */
+ 
+ #ifdef CONFIG_FEATURE_SUID

Added: trunk/buildroot/package/busybox/busybox-1.4.0-syslogd-n.patch
===================================================================

buildroot/package/busybox/busybox-1.4.0-syslogd-n.patch +65 -0

65 lines not on this page · raw message

Added: trunk/buildroot/package/busybox/busybox-1.4.0-tar.patch
===================================================================

buildroot/package/busybox/busybox-1.4.0-tar.patch +117 -0

117 lines not on this page · raw message

Added: trunk/buildroot/package/busybox/busybox-1.4.0.config
===================================================================

buildroot/package/busybox/busybox-1.4.0.config +675 -0

675 lines not on this page · raw message