• L
    util: make virSetUIDGID a NOP only when uid or gid is -1 · f506a4c1
    Laine Stump 提交于
    Rather than treating uid:gid of 0:0 as a NOP, we blindly pass that
    through to the lower layers. However, we *do* check for a requested
    value of "-1" to mean "don't change this setting". setregid() and
    setreuid() already interpret -1 as a NOP, so this is just an
    optimization, but we are also calling getpwuid_r and initgroups, and
    it's unclear what the former would do with a uid of -1.
    f506a4c1
virutil.c 81.5 KB