Lines Matching refs:capdata
98 struct __user_cap_data_struct capdata[2]; in DropRootUser() local
100 memset(&capdata, 0, sizeof(capdata)); in DropRootUser()
104 if (capget(&capheader, &capdata[0]) != 0) { in DropRootUser()
111 bool has_cap_syslog = (capdata[cap_syslog_index].effective & cap_syslog_mask) != 0; in DropRootUser()
113 memset(&capdata, 0, sizeof(capdata)); in DropRootUser()
116 capdata[cap_syslog_index].permitted |= cap_syslog_mask; in DropRootUser()
117 capdata[cap_syslog_index].effective |= cap_syslog_mask; in DropRootUser()
122 capdata[cap_block_suspend_index].permitted |= cap_block_suspend_mask; in DropRootUser()
123 capdata[cap_block_suspend_index].effective |= cap_block_suspend_mask; in DropRootUser()
125 if (capset(&capheader, &capdata[0]) != 0) { in DropRootUser()
126 MYLOGE("capset({%#x, %#x}) failed: %s\n", capdata[0].effective, in DropRootUser()
127 capdata[1].effective, strerror(errno)); in DropRootUser()