avatar
d*o
1
In Unix-like systems, can a user process execute code in the kernel?
Is it a yes or no?
My understanding is user can not access kernel directly, but not quite sure
about the "code in the kernel". Anyone can enlight me on this?
Thanks!!
avatar
r*d
2
what does your "process" mean?
user can use setuid to run the program as another user such as root but must
get permission from root, I mean if you run a program owned by the root,
your program can let you behave like a root

【在 d*o 的大作中提到】
: In Unix-like systems, can a user process execute code in the kernel?
: Is it a yes or no?
: My understanding is user can not access kernel directly, but not quite sure
: about the "code in the kernel". Anyone can enlight me on this?
: Thanks!!

avatar
p*f
3

running as root is not the same thing as "execute code in the kernel"
user process can access kernel code indirectly through syscalls, or
the kernel can run part of its code on behalf of a user process.
BTW, (almost) the same thing for process running as root.

【在 r*****d 的大作中提到】
: what does your "process" mean?
: user can use setuid to run the program as another user such as root but must
: get permission from root, I mean if you run a program owned by the root,
: your program can let you behave like a root

avatar
d*o
4
Thanks!

【在 p******f 的大作中提到】
:
: running as root is not the same thing as "execute code in the kernel"
: user process can access kernel code indirectly through syscalls, or
: the kernel can run part of its code on behalf of a user process.
: BTW, (almost) the same thing for process running as root.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。