Albert D. Cahalan wrote:
>>> sys_olduname) - P
>>
>> I'd argue that this should be restricted, on general
>> principles. (General principle: A jailed process shouldn't
>> be able to learn anything about the host it's running on.)
>
>Learning this info is easy enough without a syscall.
>You only cause trouble for legit usage.
Ok. To be clear, I consider this minor and probably
unimportant for security, hence just allowing this is
probably reasonable.
That said, is it really true that you can learn the
hostname and the like without a syscall? How?
>No, sys_getcwd will return info based on your current root.
>After chroot and all, your "/" is the top of your jail.
Ahh, I feel stupid for overlooking that. You're
absolutely right. Thanks for the correction.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:29 EST