MCPcopy Create free account
hub / github.com/F-Stack/f-stack / securelevel_gt

Function securelevel_gt

freebsd/kern/kern_prot.c:1315–1320  ·  view source on GitHub ↗

* Test the active securelevel against a given level. securelevel_gt() * implements (securelevel > level). securelevel_ge() implements * (securelevel >= level). Note that the logic is inverted -- these * functions return EPERM on "success" and 0 on "failure". * * Due to care taken when setting the securelevel, we know that no jail will * be less secure that its parent (or the physical syst

Source from the content-addressed store, hash-verified

1313 * kern_priv.c.
1314 */
1315int
1316securelevel_gt(struct ucred *cr, int level)
1317{
1318
1319 return (cr->cr_prison->pr_securelevel > level ? EPERM : 0);
1320}
1321
1322int
1323securelevel_ge(struct ucred *cr, int level)

Callers 13

firmware_get_flagsFunction · 0.70
p_candebugFunction · 0.70
settimeFunction · 0.70
sysctl_rootFunction · 0.70
kern_kldloadFunction · 0.70
kern_kldunloadFunction · 0.70
zfs_freebsd_setattrFunction · 0.50
pfioctlFunction · 0.50
i386_set_iopermFunction · 0.50
linux_ioplFunction · 0.50
amd64_set_iopermFunction · 0.50
linux_ioplFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected