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

Function mac_system_check_reboot

freebsd/security/mac/mac_system.c:175–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173MAC_CHECK_PROBE_DEFINE2(system_check_reboot, "struct ucred *", "int");
174
175int
176mac_system_check_reboot(struct ucred *cred, int howto)
177{
178 int error;
179
180 MAC_POLICY_CHECK_NOSLEEP(system_check_reboot, cred, howto);
181 MAC_CHECK_PROBE2(system_check_reboot, error, cred, howto);
182
183 return (error);
184}
185
186MAC_CHECK_PROBE_DEFINE2(system_check_swapon, "struct ucred *",
187 "struct vnode *");

Callers 1

sys_rebootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected