prison_check(9freebsd)

prison_check9freebsd

Determine if two credentials belong to the same jail

Usage

#include <sys/jail.h>

int

prison_check(struct ucred *cred1, struct ucred *cred2);

Overview

This function can be used to determine if the two credentials cred1 and cred2 belong to the same jail.

Return values

The prison_check() function returns ESRCH if cred1 has been jailed, and cred1 and cred2 do not belong to the same jail. In all other cases, prison_check() returns zero.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.