1*08f454d5Srin /* $NetBSD: keylock.h,v 1.2 2020/08/10 10:59:34 rin Exp $ */ 23ab4ce47Smbalmer /*- 33ab4ce47Smbalmer * Copyright (c) 2009 Marc Balmer <marc@msys.ch> 43ab4ce47Smbalmer * All rights reserved. 53ab4ce47Smbalmer * 63ab4ce47Smbalmer * Redistribution and use in source and binary forms, with or without 73ab4ce47Smbalmer * modification, are permitted provided that the following conditions 83ab4ce47Smbalmer * are met: 93ab4ce47Smbalmer * 1. Redistributions of source code must retain the above copyright 103ab4ce47Smbalmer * notice, this list of conditions and the following disclaimer. 113ab4ce47Smbalmer * 2. Redistributions in binary form must reproduce the above copyright 123ab4ce47Smbalmer * notice, this list of conditions and the following disclaimer in the 133ab4ce47Smbalmer * documentation and/or other materials provided with the distribution. 143ab4ce47Smbalmer * 153ab4ce47Smbalmer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 163ab4ce47Smbalmer * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 173ab4ce47Smbalmer * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 183ab4ce47Smbalmer * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 193ab4ce47Smbalmer * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 203ab4ce47Smbalmer * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 213ab4ce47Smbalmer * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 223ab4ce47Smbalmer * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 233ab4ce47Smbalmer * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 243ab4ce47Smbalmer * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 253ab4ce47Smbalmer */ 263ab4ce47Smbalmer 273ab4ce47Smbalmer #ifndef _SECMODEL_KEYLOCK_KEYLOCK_H_ 283ab4ce47Smbalmer #define _SECMODEL_KEYLOCK_KEYLOCK_H_ 293ab4ce47Smbalmer 303ab4ce47Smbalmer int secmodel_keylock_sysctl(SYSCTLFN_PROTO); 313ab4ce47Smbalmer 323ab4ce47Smbalmer void secmodel_keylock_init(void); 333ab4ce47Smbalmer void secmodel_keylock_start(void); 343ab4ce47Smbalmer void secmodel_keylock_stop(void); 353ab4ce47Smbalmer 36*08f454d5Srin #if defined(_MODULE) 373ab4ce47Smbalmer SYSCTL_SETUP_PROTO(sysctl_security_keylock_setup); 38*08f454d5Srin #endif /* _MODULE */ 393ab4ce47Smbalmer 403ab4ce47Smbalmer int secmodel_keylock_system_cb(kauth_cred_t, kauth_action_t, void *, 413ab4ce47Smbalmer void *, void *, void *, void *); 423ab4ce47Smbalmer int secmodel_keylock_process_cb(kauth_cred_t, kauth_action_t, void *, 433ab4ce47Smbalmer void *, void *, void *, void *); 443ab4ce47Smbalmer int secmodel_keylock_network_cb(kauth_cred_t, kauth_action_t, void *, 453ab4ce47Smbalmer void *, void *, void *, void *); 463ab4ce47Smbalmer int secmodel_keylock_machdep_cb(kauth_cred_t, kauth_action_t, void *, 473ab4ce47Smbalmer void *, void *, void *, void *); 483ab4ce47Smbalmer int secmodel_keylock_device_cb(kauth_cred_t, kauth_action_t, void *, 493ab4ce47Smbalmer void *, void *, void *, void *); 503ab4ce47Smbalmer 513ab4ce47Smbalmer #endif /* !_SECMODEL_KEYLOCK_KEYLOCK_H_ */ 52