Lines Matching refs:capdata
616 struct __user_cap_data_struct capdata[2]; in drop_privileges() local
618 memset(&capdata, 0, sizeof(capdata)); in drop_privileges()
622 capdata[CAP_TO_INDEX(CAP_DAC_OVERRIDE)].permitted |= CAP_TO_MASK(CAP_DAC_OVERRIDE); in drop_privileges()
623 capdata[CAP_TO_INDEX(CAP_CHOWN)].permitted |= CAP_TO_MASK(CAP_CHOWN); in drop_privileges()
624 capdata[CAP_TO_INDEX(CAP_SETUID)].permitted |= CAP_TO_MASK(CAP_SETUID); in drop_privileges()
625 capdata[CAP_TO_INDEX(CAP_SETGID)].permitted |= CAP_TO_MASK(CAP_SETGID); in drop_privileges()
626 capdata[CAP_TO_INDEX(CAP_FOWNER)].permitted |= CAP_TO_MASK(CAP_FOWNER); in drop_privileges()
628 capdata[0].effective = capdata[0].permitted; in drop_privileges()
629 capdata[1].effective = capdata[1].permitted; in drop_privileges()
630 capdata[0].inheritable = 0; in drop_privileges()
631 capdata[1].inheritable = 0; in drop_privileges()
633 if (capset(&capheader, &capdata[0]) < 0) { in drop_privileges()