Comment 2 for bug 71575

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 71575] Re: /proc/sys/vm/drop_caches should be able to be configured to allow regular user writes

On Wed, 2006-11-15 at 02:34 +0000, Ben Collins wrote:
> or it.
>
> Can you provide a sample program that shows the problem?

I tried
$ echo 1 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied
$ sudo chmod 0666 /proc/sys/vm/drop_caches
$ echo 1 > /proc/sys/vm/drop_caches
bash: echo: write error: Operation not permitted
$ sudo chmod 0666 /proc/sys/vm/drop_caches
$ ls -ld /proc/sys/vm/drop_caches
-rw-rw-rw- 1 root root 0 2006-11-16 08:52 /proc/sys/vm/drop_caches
$ ls -ld /proc/sys/vm
dr-xr-xr-x 2 root root 0 2006-11-16 08:52 /proc/sys/vm
$ echo 1 > /proc/sys/vm/drop_caches
bash: echo: write error: Operation not permitted
$

So the mode does not seem to be sufficient :(.

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.