| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
'df' command used to display filesystem usage statistics as integer
values, in most cases rounding the actual value down. Because of
that 'df' tended to display faulty size values.
This fix to 'df' utility calculates the fractional part of the size,
then it rounds it when needed to the nearest one-digit integer value
and displays after decimal dot.
Change-Id: I9bc52635d45d3e55ce61b3b1c6b80d1267516e75
|
|\ \
| | |
| | |
| | | |
Change-Id: I66988d8e87a8110ca9ab3da19870b80bbaf06eba
|
| | |
| | |
| | |
| | | |
Change-Id: Idef0a784a1d237257ff4135bb1df62ff8a67ded3
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit '674c0445e25cdf9bcd7d32a84103bd3b7e24a4a0':
toolbox: silence some compiler warnings
|
| |/
| |
| |
| |
| |
| |
| | |
Comparison of signed and unsigned integers. Use parenthesis around a
group of bitwise OR operations.
Change-Id: Ia404380593ce2c2a291133c07c0fc7a016a3ad3f
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Define /storage as top-level concept, so that we enforce permissions
uniformly. Moves external storage paths from headers to per-device
environment variables. Added missing mount flags, and we no longer
have adb-specific external storage.
Bug: 6925012
Change-Id: Ic7ca953be2f552d3f0ec9e69f89fef751daa1b29
|
|\ \
| |/
| |
| |
| | |
* commit '76080925410db41cfa5c70ffcffaa2b3b4d59aad':
vmstat: Fix -n flag
|
| |\ |
|
| | |
| | |
| | |
| | |
| | | |
The loop condition for the number of iterations basically caused the
argument to -n to be ignored. This fixes the condition appropriately.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit '02e9f8d5aa390d89f79b2b3bb8630af4062b4d2c':
Make setenforce usage function static.
|
| | |
| | |
| | |
| | | |
Change-Id: I6de204dc072418805160a35d799b8948ecb39251
|
|\ \ \
| |/ /
| | |
| | | |
Change-Id: Ibd0c03a7883a2e31adab18543c016776b7b36866
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
To support runtime policy management, add support for reloading
policy from /data/system. This can be triggered by setting the
selinux.loadpolicy property to 1, whether from init.rc after
mounting /data or from the system_server (e.g. upon invocation of
a new device admin API for provisioning policy). ueventd and
installd are restarted upon policy reloads to pick up the new
policy configurations relevant to their operation.
Change-Id: I97479aecef8cec23b32f60e09cc778cc5520b691
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit 'c5db017cc3d30b1b15544ca9889e66890710f93c':
Conditionally use SIGSTKFLT
|
| |/
| |
| |
| | |
Change-Id: I555b33b5a93df332c556944a1c00fff417825247
|
| |
| |
| |
| |
| | |
Bug: 6798417
Change-Id: I581c496a726a4814edaaa3672849c090bac8552c
|
| |
| |
| |
| |
| | |
Bug: 6798417
Change-Id: I716ab459b9edf4c7405bf042adbee0300b6f51c9
|
| |
| |
| |
| |
| |
| |
| |
| | |
The code is from NetBSD, with the -n and -h options removed to make
porting easy. Also, removed support for the BLOCKSIZE environment
variable for the same reason.
Change-Id: Ib927ff3527e02802785fdd7f75bab1f05222918e
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When creating a new file using open(..., O_CREAT), it is an error
to fail to specify a creation mode. If a mode is not specified, a
random stack provided value is used as the "mode".
This will become a runtime error in a future version of Android.
Change-Id: I00609f37d2ea68e21b6404d542830386be354202
|
|\ \
| |/
| |
| |
| |
| |
| | |
unloading"
* commit '2a2e10fbb38e4f4d7759f619275fa4ebd596259a':
toolbox: rmmod: fix module unloading
|
| |\
| | |
| | |
| | |
| | | |
* commit '16d2b6ae4050b1232fd164cef1dbade532fe29a4':
toolbox: rmmod: fix module unloading
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Replace "-" with "_" in module name. This would keep
rmmod compatible with module-init-tools version of rmmod
Change-Id: I4470d9a98bc2f299acd94859fca4403aee279d2b
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
Matches behavior of coreutils dd. Also removes unsupported
conversions.
Change-Id: I9ed5a7d43b5b083041b261ce70f6c835b41dc7ac
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit 'a802b8374a22da9f52541e1fc286dcbdb1cfa1b4':
toolbox: implement rm -f flag
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
this prevent compatibility errors in scripts (file "-f" not found)
The force flag will not return an error if the file doesnt exist.
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Change-Id: I3267963284ee247629da5ab299e900c6e4a4ac68
|
| |
| |
| |
| |
| |
| |
| | |
This file is not compiled and not used.
Bug: 6435382
Change-Id: I3a08690950f1c77f8b0bc57a9e5cdb6eb402ac77
|
| |
| |
| |
| |
| |
| |
| |
| | |
mksh provides a kill primitive with signal names, but also offer it in
our toolbox binary. This will allow anyone to use "kill -HUP <pid>" or
"kill -l" to look at the name to number signal mapping.
Change-Id: Id683721f4ad3f2b518b4dc54a6073510290cbe04
|
| |
| |
| |
| |
| |
| |
| | |
Some versions of windows cannot handle FAT32 filesystems with less
than 65527 clusters, so make sure we don't create such beasts.
Change-Id: Id00fb02c4f8476f7dcc0ef137bd9e4975d740591
|
| |
| |
| |
| |
| |
| |
| | |
This will make it easier to add additional policies (cgroups) if needed.
Also added comments to the sched_policy APIs.
Change-Id: I33ce1cc4deae10983241f7391294b7a512d2c47c
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I7d997b3254354908317feee54b6df9b2419718a6
|
|\ \ \
| |/ /
|/| /
| |/
| |
| |
| | |
chown has a bad print"
* commit '25443f80a27c6153c3406b4443fd07442e410a57':
Toolbox implementation of chown has a bad print
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When the chown program fails it prints out an error message
and is describing itself as chmod. This has been corrected.
Change-Id: I2c489975f09343bdf66acbf7df6e7183c2daff78
Signed-off-by: christian bejram <christian.bejram@stericsson.com>
|
|\ \ \
| |/ /
| | |
| | | |
Change-Id: Ib77a4d9161261306253a174727801526e7149621
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Add -Z option to ls and ps for displaying security contexts.
Modify id to display security context.
Add new SELinux commands: chcon, getenforce, getsebool, load_policy, restorecon, runcon, setenforce, setsebool.
Change-Id: Ia20941be4a6cd706fe392fed6e38a37d880ec5f1
|
|\ \
| |/
| |
| |
| | |
* commit '82dd6af84676f1ea6f67ce6fbd2c5cea7a8aa601':
rmmod: fix full path syntax
|
| |
| |
| |
| |
| |
| |
| | |
rmmod /system/modules/multitouch.ko
rmmod: delete_module '/multitouch' failed (errno 2)
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
hd would error out on files that were not a multiple of its read
buffer size (4096). For example:
Read error on init.rc, offset 17040 len 4096, No such file or directory
The fix is to stop reading on EOF instead of treating it as an
error.
Signed-off-by: Scott Anderson <saa@google.com>
(cherry picked from commit a9fac4155f645b59d92028d56af573999051ab70)
Change-Id: Ib2af725fc39e96c2f81559f61979d451604d4817
|
| |
| |
| |
| |
| |
| |
| |
| | |
This command outputs the MD5 for specified files. The output is
in the same form as the md5sum command on Linux.
Change-Id: Ie0e6faf678469ac886bba8b46d98c0e54976a1ed
Signed-off-by: Scott Anderson <saa@google.com>
|
| |
| |
| |
| |
| |
| | |
Also make sure the read cmdline is terminated with a null byte.
Change-Id: I6b4aa197ce9bc072a912b7163e8616a03b39c3fe
|
|/
|
|
| |
Change-Id: I378c3028630a7f805c3f730da02bbbfe07ec3654
|
|
|
|
| |
Change-Id: I81c4b7e6480b98e59fb389060ab2c8d34257ae5f
|
|
|
|
|
|
|
| |
Also, always print the input properties when -p is
specified.
Change-Id: Ibacb6dd26ccab68c85b76928df60fdc2a53c198c
|
|\
| |
| |
| |
| | |
* commit '070ec8e02e12aafc8a636737bba3d5ead7cecd8e':
Add -F for classify to ls
|
| |\
| | |
| | |
| | | |
Change-Id: Ic668cb99822d4bc44f2f57782afd1a6c1b348e9b
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adds a field to the non-long version of ls that tells what type of file
it is (i.e., regular, directory, link, fifo, etc).
This is useful for scripts that don't have direct filesystem access.
Change-Id: I54a327390f6ed403acb13c824f62ba9594ba320d
|
| | |
| | |
| | |
| | | |
Change-Id: Id2b3fbc46b8dfbe2f05637fb35c298915cd5f524
|