[lkml]   [2009]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: EUID != root + EGID = root, and CAP_SETGID
Ivan Zahariev  wrote:
>Is this an intended behavior?

Yes. Setuid/setgid are a mess. For more details, you might
find the following research papers interesting:

See, e.g., Section 5.2 of the former paper, which says:

"an effective group ID of zero does not accord any
special privileges to change groups. This is a potential
source of confusion: it is tempting to assume incorrectly
that since appropriate privileges are carried by the euid
in the setuid-like calls, they will be carried by the
egid in the setgid-like calls, but this is not how it
actually works. This misconception caused a mistake in
the manual page of setgid in Redhat Linux 7.2 (Section

 \ /
  Last update: 2009-12-13 06:47    [W:0.064 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site