Changeset c41c20f in freewrt


Ignore:
Timestamp:
Feb 25, 2007, 5:04:23 AM (19 years ago)
Author:
Phil Sutter <n0-1@…>
Children:
77bcea8
Parents:
b4dadda
Message:

set the suid-bit of the busybox binary after installing from ipkg

This should prevent disastrous situations after upgrading/reinstalling
busybox for some reason and having logged out of the last root shell.

Proof of concept:
root@FreeWRT:~# chmod u-s /bin/busybox
root@FreeWRT:~# ll /bin/busybox
-rwxr-xr-x 1 root root 739224 Feb 25 01:29 /bin/busybox
root@FreeWRT:~# ipkg install busybox_1.4.1-6_mipsel.ipk
Installing busybox (1.4.1-6) to root...
Configuring busybox
Done.
root@FreeWRT:~# ll /bin/busybox
-rwsr-xr-x 1 root root 755724 Feb 25 04:55 /bin/busybox

Maybe this should be done for freewrt_1_0 too?

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2097 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.