logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

prison_check — determine if two credentials belong to the same jail

Description

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

Name

       prison_check — determine if two credentials 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.

See Also

jail(2)

Debian                                          December 11, 2003                                PRISON_CHECK(9)

Synopsis

#include<sys/jail.h>intprison_check(structucred*cred1, structucred*cred2);

return

See Also