Re: [TOMOYO #15 6/8] LSM adapter functions.

From: Tetsuo Handa
Date: Thu Feb 05 2009 - 20:42:38 EST


Alexey Dobriyan wrote:
> > + if (tomoyo_prepend(&end, &buflen, "/proc/sys"))
>
> Hardcoded path?
>
Yes.

The sysctl's table tree is accessible via sys/ directory of proc filesystem.
Since this function is called by sysctl(2), we don't have a mount point.
On the assumption that proc filesystem is mounted on /proc/ , TOMOYO pretends
as if corresponding sysctl table entry under sys/ directory of proc filesystem
is accessed.

Regards.
--
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/