Changeset c41c20f in freewrt
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rb4dadda
|
rc41c20f
|
|
| 1 | 1 | #!/bin/sh |
| | 2 | chmod u+s /bin/busybox |
| 2 | 3 | . $IPKG_INSTROOT/etc/functions.sh |
| 3 | 4 | add_rcconf network network YES |