diff options
| author | Elliott Hughes <enh@google.com> | 2015-07-01 14:56:07 -0500 |
|---|---|---|
| committer | Rob Landley <rob@landley.net> | 2015-07-01 14:56:07 -0500 |
| commit | 8c0d2d2bc557ced86650ab48ab92cf58840efce8 (patch) | |
| tree | b5781eb790c0c54198b9bea417be2886c46091fa /lib/interestingtimes.c | |
| parent | 56217bb175cdf9506b9b7970edd313c1fef8e122 (diff) | |
| download | toybox-8c0d2d2bc557ced86650ab48ab92cf58840efce8.tar.gz | |
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.
Diffstat (limited to 'lib/interestingtimes.c')
0 files changed, 0 insertions, 0 deletions
