Re: [PATCH 1/2] mm: restrict access to slab files under procfs andsysfs

From: Vasiliy Kulikov
Date: Tue Sep 27 2011 - 15:17:55 EST


On Tue, Sep 27, 2011 at 13:08 -0500, Christoph Lameter wrote:
> Possible candidates:
>
> christoph@oldy:~/n/linux-2.6$ grep proc_create mm/*
> mm/swapfile.c: proc_create("swaps", 0, NULL, &proc_swaps_operations);
> mm/vmstat.c: proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
> mm/vmstat.c: proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops);
> mm/vmstat.c: proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);
> mm/vmstat.c: proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
>
> vmstat and zoneinfo in particular give similar information to what is
> revealed through the slab proc files.

Do you know whether these files are actively used? I don't want to
break tools like "free" or "top". In this case we'll have to discover
another way to limit this information.

Thank you!

--
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/