#37 /proc/sys/vm/drop_caches is not readable
Opened a year ago by pampelmuse. Modified 11 months ago

Running the kernel test I (and others) get:
cat: /proc/sys/vm/drop_caches: Permission denied
Flaw may be in the file
kernel-tests/default/cachedrop/drop_caches.sh
TUNE_FILE=/proc/sys/vm/drop_caches
[...]
TEST_TUNE=cat ${TUNE_FILE}


"if ! [ -f ${TUNE_FILE} ]; then"
but the file has 0200 permission, so it exists.

If I put: "if ! [ -r ${TUNE_FILE} ]; then"
the script sees it is not readable, but the tests suite fails.

Login to comment on this ticket.

Metadata