由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - simple unix question
相关主题
帮帮忙,用C作一个SHELLhow to execute *.exe files?
[转载] Help, about clock().make fortran in UNIX
how to transfer C program run under VC to Unix?问题,急
How to open *.bin files?How to call a executable file on Unix?
where is user.listUnix 编成小问题
owner of file急,帮个忙
how to get rid of the ^M in files?Help: convert // to /* */ in C code?
看看下面这个至少要多少行请问在unix/linux能隐身吗?
相关话题的讨论汇总
话题: kernel话题: user话题: unix话题: process话题: root
进入Unix版参与讨论
1 (共1页)
d*o
发帖数: 108
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!!
r*****d
发帖数: 54
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!!

p******f
发帖数: 162
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

d*o
发帖数: 108
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.

1 (共1页)
进入Unix版参与讨论
相关主题
请问在unix/linux能隐身吗?where is user.list
.cshrc?.login?.profile?owner of file
奇怪问题一个how to get rid of the ^M in files?
strange problem about wget execution看看下面这个至少要多少行
帮帮忙,用C作一个SHELLhow to execute *.exe files?
[转载] Help, about clock().make fortran in UNIX
how to transfer C program run under VC to Unix?问题,急
How to open *.bin files?How to call a executable file on Unix?
相关话题的讨论汇总
话题: kernel话题: user话题: unix话题: process话题: root