aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-16Shout from the rooftops that pending is not like other directories.Rob Landley
2015-04-15Put SELINUX in a a menu, and add config option for SMACK.Rob Landley
2015-04-14Yet more ps work. Still not there yet.Rob Landley
2015-04-12unshare: fix -rSamuel Holland
Calling unshare(2) immediately puts us in the new namespace with the "overflow" user and group ID. By calling geteuid() and getegid() in handle_r() after calling unshare(), we try to map that to root, which Linux refuses to let us do. What we really want to map to root is the caller's uid/gid in the original namespace. So we have to save them before calling unshare().
2015-04-12Before trying to remount read only, see if block device responds to "become rw"Rob Landley
ioctl(). (This is a thing Android's old mount already does.)
2015-04-10Implement Android restorecon.Elliott Hughes
On Android, much of the restorecon logic is in libselinux, so this isn't portable. We do want to be able to build on the host for testing *other* toys, though, so #if keeps this building. Change-Id: Ida5a6713a926140c549d5770d62798f4aedca748
2015-04-10Fix load_policy error reporting.Elliott Hughes
Also switch to xopen for O_CLOEXEC paranoia and to avoid a conditional. Change-Id: Iee5c4c124bcac800313f586768ffcaade542bd22
2015-04-10getenforce takes no arguments.Elliott Hughes
Change-Id: Icbee1df8b316039c68ef326f9d4d80f32c603b21
2015-04-10setenforce takes exactly one argument.Elliott Hughes
Change-Id: I83c478ea9ddd456c61e3f0f99506a1028a7027a1
2015-04-10Make more(1) usable.Elliott Hughes
> Yes, I know, "don't use pending". Sadly, more(1) is pretty useless > without this. It gets confused by long lines or tabs. > > This patch also adds the missing prompt between multiple files. actually, it looks like we're already hard-coding some escape sequences? more(1) doesn't need anything that isn't in ANSI, so here's an alternative patch that fixes the same bugs as the other patch but also has a reverse-video prompt:
2015-04-10Update www/roadmap.html with Android progress.Elliott Hughes
Not much progress this week. Just route and umount. Also remove a stray reference to load_policy which already switched. Also remove an outdated claim that Android logging is done in the kernel. It's been in userspace for a while now.
2015-04-10Tweak .gitignore.Rob Landley
2015-04-08Tweak READMERob Landley
2015-04-08Update multiplexer help text for --versionRob Landley
2015-04-08Revert last mdev commit because it copied code out of a GPLv2 program.Rob Landley
Guys, you CANNOT COPY CODE FROM BUSYBOX. I don't care if I was the initial author of that file, other people have touched it since. I know I added "pending" because I couldn't keep up with code review in realtime and stuff was getting lost, so we needed a place to park things before they underwent the full dorodango process. I also know none of the binaries I distribute has anything in pending enabled. But dude, if I'm going to find stuff like this I have to start reviewing the code BEFORE applying it to pending, and we all know where that leads. Please don't do this again.
2015-04-07Adding --version broke ./toybox command list. (Oops.)Rob Landley
2015-04-05Announce switch to git.Rob Landley
2015-04-05Add --version to multiplexer.Rob Landley
Can't think of a better place to stick the actual version info than a #define at the top of main. Makefile and toys.h are equally awkward, querying git tags wouldn't work if building a release tarball... watch me forget to update this when cutting a release.
2015-04-05Bite the bullet and switch over to git.Rob Landley
2015-04-04To ensure that toybox can be installed alongside busybox withoutPaul Barker
confusing update-alternatives, the paths of the links installed by toybox should match those installed by busybox. This is accomplished by changing the flags of a few tools within toybox.
2015-04-04Another in-progress ps snapshot.Rob Landley
2015-04-03Add readfileat() to libRob Landley
2015-04-03ps checkpoint du jour. Does not work yet.Rob Landley
2015-04-02Redoing ps from scratch. Random checkpoint that probably doesn't even compile.Rob Landley
Checking in a stopping point where I figured out what I did wrong, before changing it.
2015-03-29Add head test for -123.Rob Landley
2015-03-29Fix head bug pointed out by felix janda (recent -123 code broke first file ↵Rob Landley
argument of -n).
2015-03-28Fix sed bug David Halls hit trying to compile libiconv.Rob Landley
2015-03-28Fix printf bug (%.s should be %.0s not %s) reported by Isabella Parakiss.Rob Landley
2015-03-28Fix an obvious typo in Makefile.Elliott Hughes
2015-03-28update the Android section of roadmap.htmlElliott Hughes
Four obsolete tools were removed from Android, and runcon moved to toybox.
2015-03-27Promote setenforce to android.Rob Landley
2015-03-27Cleanup setenforce.Rob Landley
2015-03-27Promote getenforce.Rob Landley
2015-03-27Cleanup getenforce.Rob Landley
2015-03-27Flag to make llvm shut up about a broken warning.Rob Landley
2015-03-27tail: add old -123 support and comment out #-f until it's actually implemented.Rob Landley
2015-03-27Promote load_policy to android.Rob Landley
2015-03-27Minor cleanup of load_policy.Rob Landley
2015-03-26Explain the craptacular nature of kconfig, and the plan to replace it.Rob Landley
2015-03-25Fix toybox build with C99 compilersBernhard Rosenkr?nzer
toybox "make menuconfig" currently fails to build if the compiler is in C99 mode (clang 3.6 and gcc 5.0 snapshots default to C99 mode, you can also reproduce the failure with older gcc by using 'make menuconfig HOSTCC="gcc -std=gnu99"'). The problem is that inline semantics changed in C99, and kconf_id_lookup's inline-ness depends on C89 semantics there.
2015-03-24Implement load_policy.Elliott Hughes
Note that this is a case where Android's tool isn't the same as the usual tool. Ours takes an explicit file containing the policy to be loaded. restorecon is at least command-line compatible, but the implementation is all in Android's libselinux where there's a selinux_android_restorecon function.
2015-03-23Promote runcon to android (and add an android menu).Rob Landley
2015-03-23Trivial runcon cleanups.Rob Landley
2015-03-23Add runcon(1).Elliott Hughes
2015-03-23add missing space in dd outputElliott Hughes
Also, coreutils says "s" instead of "seconds". POSIX specifies the format of the previous two lines, but doesn't even mention this line.
2015-03-23Tweak of Elliott Hughes's fix for an off by one error in human_readableRob Landley
(137 returned "137 KB".)
2015-03-23Update the Android section of the roadmap.Elliott Hughes
I've removed the reference to fs_mgr, since that's really part of vold rather than a subset of mount(1), and I've removed the reference to ifconfig because we're already using the toybox ifconfig and the reference in this document to the Android command that it referred to (netcfg) was already removed.
2015-03-21Another bug from David Halls: find -exec wasn't consuming its argument when ↵Rob Landley
it didn't activate. test: find . -name README -exec echo one '{}' ';' -or -exec echo two '{}' ';'
2015-03-21install -D bugfix from David Halls.Rob Landley
(I tweaked some comment text while I was there.)
2015-03-21Patch from David Halls to fix mac/ios portability issue.Rob Landley