Lines Matching refs:operation
55 uint8_t operation; in cap_sysctlbyname() local
58 operation = 0; in cap_sysctlbyname()
60 operation |= CAP_SYSCTL_READ; in cap_sysctlbyname()
62 operation |= CAP_SYSCTL_WRITE; in cap_sysctlbyname()
67 nvlist_add_number(nvl, "operation", (uint64_t)operation); in cap_sysctlbyname()
128 uint64_t operation; in sysctl_check_one() local
136 operation = nvlist_get_number(nvl, name); in sysctl_check_one()
137 if ((operation & ~(CAP_SYSCTL_RDWR)) != 0) in sysctl_check_one()
140 if ((operation & (CAP_SYSCTL_RDWR)) == 0) in sysctl_check_one()
165 uint64_t operation; in sysctl_allowed() local
177 operation = nvlist_get_number(limits, name); in sysctl_allowed()
178 if ((operation & choperation) != choperation) in sysctl_allowed()
181 if ((operation & CAP_SYSCTL_RECURSIVE) == 0) { in sysctl_allowed()
205 uint64_t operation; in sysctl_limit() local
212 operation = nvlist_get_number(newlimits, name); in sysctl_limit()
213 if ((operation & ~(CAP_SYSCTL_RDWR | CAP_SYSCTL_RECURSIVE)) != 0) in sysctl_limit()
215 if ((operation & (CAP_SYSCTL_RDWR | CAP_SYSCTL_RECURSIVE)) == 0) in sysctl_limit()
217 if (!sysctl_allowed(oldlimits, name, operation)) in sysctl_limit()
231 uint64_t operation; in sysctl_command() local
243 operation = nvlist_get_number(nvlin, "operation"); in sysctl_command()
244 if (!sysctl_allowed(limits, name, operation)) in sysctl_command()
247 if ((operation & CAP_SYSCTL_WRITE) != 0) { in sysctl_command()
257 if ((operation & CAP_SYSCTL_READ) != 0) { in sysctl_command()
285 if ((operation & CAP_SYSCTL_READ) != 0) { in sysctl_command()