selinux-patch for 1.01 - checked warnings

Vladimir N. Oleynik dzo at simtreas.ru
Fri Sep 23 07:56:13 UTC 2005


Jan-Simon,

> So here is  a log and the used patch for the stable 1.01 tarball ...

> dl9pf at pc49:~/Documents/download> cp -a busybox-1.01 busybox-1.01_selinux2
> dl9pf at pc49:~/Documents/download> cd busybox-1.01_selinux2/
> dl9pf at pc49:~/Documents/download/busybox-1.01_selinux2> patch -p1 --dry-run 
> < ../busybox-1.01_to_selinux.patch2
> patching file coreutils/id.c
> patching file coreutils/ls.c
> patching file include/libbb.h
> patching file libbb/find_pid_by_name.c
> patching file libbb/procps.c
> patching file libbb/run_shell.c
> patching file loginutils/login.c
> patching file loginutils/su.c
> patching file loginutils/sulogin.c
> patching file Makefile
> patching file procps/ps.c
> patching file procps/top.c

Cat you make this patch as:

1) add selinux flag to include/applets.h
-# define APPLET(a,b,c,d)
+# define APPLET(a,b,c,d, selinux_flag)
...
2) insert selinux initializes to run_applet_by_name()
#ifdef CONFIG_SELINUX
	if(applet_using->selinux)
		selinux_initialize_stuff();
#endif
3) may be remove all selinux-shit from applet`s sourses
and move to libbb member selinux_stuff()
(may be for run_shell() too)

?
Else, I think do remove this selinux-shit and move
your patch to the patches/ project directory.



--w
vodz



More information about the busybox mailing list