7ca5dc4232b9ac5ee5cd25c8b5b33a58904cd251 |
|
02-Mar-2016 |
Rob Landley <rob@landley.net> |
For years the man pages have said to #include <sys/types.h> to get major/minor/makedev, but glibc has vowed to break existing programs (https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html) and replace it with _another_ non-standard header (not in posix or lsb), so let's just add functions to lib/ that do the transform ourselves.
/external/toybox/toys/lsb/mknod.c
|
d3a435e53c94ec25b4ae5fa2614f49ef8884e08a |
|
06-Jan-2016 |
Rob Landley <rob@landley.net> |
Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable format checking, and fix up format checking complaints. Added out(type, value) function to stat to avoid a zillion printf typecasts.
/external/toybox/toys/lsb/mknod.c
|
8c0d2d2bc557ced86650ab48ab92cf58840efce8 |
|
01-Jul-2015 |
Elliott Hughes <enh@google.com> |
Improve -Z error reporting. The most likely reason for setfscreatecon to fail is that you don't have permission, and that's reported by the write return EACCES. There isn't really a "bad" context; they're just strings. Before: $ adb shell mkdir -Z x y mkdir: bad -Z 'x' After: $ adb shell mkdir -Z x y mkdir: -Z 'x' failed: Permission denied Other than this, the ToT mkdir works fine with SELinux.
/external/toybox/toys/lsb/mknod.c
|
34434df7c1b919f658ee2db75358adbe5647bd76 |
|
15-Jun-2015 |
Rob Landley <rob@landley.net> |
Use lsm_set_create() to set security blanket context before mknod, avoiding racy gap between create/label.
/external/toybox/toys/lsb/mknod.c
|
7c8a2f4adf8502ab2ca921944427e35cde069b6c |
|
11-May-2015 |
José Bollo <jose.bollo@open.eurogiciel.org> |
mknod: Add -Z option Change-Id: I23174fb7b54d029784e6d7460368128113090079
/external/toybox/toys/lsb/mknod.c
|
4216f59cec17699298f5b4043db513e4859bd232 |
|
10-Mar-2015 |
Rob Landley <rob@landley.net> |
Add -m to mknod
/external/toybox/toys/lsb/mknod.c
|
7aa651a6a4496d848f86de9b1e6b3a003256a01f |
|
14-Nov-2012 |
Rob Landley <rob@landley.net> |
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
/external/toybox/toys/lsb/mknod.c
|
c0e56edaf256adb6c60c5a052525a1ffbb927901 |
|
08-Oct-2012 |
Rob Landley <rob@landley.net> |
New build infrastructure to generate FLAG_ macros and TT alias, #define FOR_commandname before #including toys.h to trigger it. Rename DEFINE_GLOBALS() to just GLOBALS() (because I could never remember if it was DECLARE_GLOBALS). Convert existing commands to use new infrastructure, and replace optflag constants with FLAG_ macros where appropriate.
/external/toybox/toys/lsb/mknod.c
|
a631a3b45b72e54b75758150eba5fc99e85cee7c |
|
06-Oct-2012 |
Rob Landley <rob@landley.net> |
Cleanup mknod.
/external/toybox/toys/lsb/mknod.c
|
f91b7c89bc852868692b9518185421ebb52d67b3 |
|
26-Aug-2012 |
Rob Landley <rob@landley.net> |
Regularize command headers, update links to standards documents.
/external/toybox/toys/lsb/mknod.c
|
3a9241add947cb6d24b5de7a8927517426a78795 |
|
25-Aug-2012 |
Rob Landley <rob@landley.net> |
Move commands into "posix", "lsb", and "other" menus/directories.
/external/toybox/toys/lsb/mknod.c
|