privilege: FSUID 's privilege decides rwx on files, not EUID's decision !?
Normal rule:
EUID: used for privilege checks (except for the filesystem) .
ex: files's read/write/excute
FSUID:used for filesystem access checks.
ex: Filesystem Object Attributes(rwx setuid setgid user group...).
Now , suppose a user called kennedy(500) executes a program,and
its file has its setuid(root) bit set.
RUID=500 , EUID=SUID=FSUID=0.
Situation 1:
I change FSUID's value =500 ,the program
can't use function execl() to execute another file.
RUID=500,EUID=SUID=0,FSUID=0.
Situation 2:
I change EUID's value =500, the program can use
function execl() to execute any file.
RUID=500=EUID ,SUID=0,FSUID=0.
Summary:
Why checking privilege is FSUID do it not EUID?
I test many times to find out the problem about EUID/FSUID.
What's wrong with the EUID ? It confuses me !!
Please tell me the reason. -.-