Copyright (c) 2000 Christian S.J. Peron <email@example.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the ...
NAMEsecurelevel_gt , securelevel_ge - test active securelevel
SYNOPSISIn sys/types.h In sys/proc.h Ft int Fn securelevel_gt struct ucred *cr int level Ft int Fn securelevel_ge struct ucred *cr int level
DESCRIPTIONThese functions test the active security level against the given Fa level . If the calling credential Fa cr was imprisoned by the jail(2) system call, and has a different security level set than the host environment, the security level with the highest value is used.
The Fn securelevel_gt function will evaluate whether or not the active security level is greater than the supplied Fa level .
The Fn securelevel_ge function will evaluate whether or not the active security level is greater than or equal to the supplied Fa level .