11.2Srin/* $NetBSD: keylock.h,v 1.2 2020/08/10 10:59:34 rin Exp $ */ 21.1Smbalmer/*- 31.1Smbalmer * Copyright (c) 2009 Marc Balmer <marc@msys.ch> 41.1Smbalmer * All rights reserved. 51.1Smbalmer * 61.1Smbalmer * Redistribution and use in source and binary forms, with or without 71.1Smbalmer * modification, are permitted provided that the following conditions 81.1Smbalmer * are met: 91.1Smbalmer * 1. Redistributions of source code must retain the above copyright 101.1Smbalmer * notice, this list of conditions and the following disclaimer. 111.1Smbalmer * 2. Redistributions in binary form must reproduce the above copyright 121.1Smbalmer * notice, this list of conditions and the following disclaimer in the 131.1Smbalmer * documentation and/or other materials provided with the distribution. 141.1Smbalmer * 151.1Smbalmer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 161.1Smbalmer * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 171.1Smbalmer * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 181.1Smbalmer * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 191.1Smbalmer * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 201.1Smbalmer * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 211.1Smbalmer * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 221.1Smbalmer * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 231.1Smbalmer * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 241.1Smbalmer * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 251.1Smbalmer */ 261.1Smbalmer 271.1Smbalmer#ifndef _SECMODEL_KEYLOCK_KEYLOCK_H_ 281.1Smbalmer#define _SECMODEL_KEYLOCK_KEYLOCK_H_ 291.1Smbalmer 301.1Smbalmerint secmodel_keylock_sysctl(SYSCTLFN_PROTO); 311.1Smbalmer 321.1Smbalmervoid secmodel_keylock_init(void); 331.1Smbalmervoid secmodel_keylock_start(void); 341.1Smbalmervoid secmodel_keylock_stop(void); 351.1Smbalmer 361.2Srin#if defined(_MODULE) 371.1SmbalmerSYSCTL_SETUP_PROTO(sysctl_security_keylock_setup); 381.2Srin#endif /* _MODULE */ 391.1Smbalmer 401.1Smbalmerint secmodel_keylock_system_cb(kauth_cred_t, kauth_action_t, void *, 411.1Smbalmer void *, void *, void *, void *); 421.1Smbalmerint secmodel_keylock_process_cb(kauth_cred_t, kauth_action_t, void *, 431.1Smbalmer void *, void *, void *, void *); 441.1Smbalmerint secmodel_keylock_network_cb(kauth_cred_t, kauth_action_t, void *, 451.1Smbalmer void *, void *, void *, void *); 461.1Smbalmerint secmodel_keylock_machdep_cb(kauth_cred_t, kauth_action_t, void *, 471.1Smbalmer void *, void *, void *, void *); 481.1Smbalmerint secmodel_keylock_device_cb(kauth_cred_t, kauth_action_t, void *, 491.1Smbalmer void *, void *, void *, void *); 501.1Smbalmer 511.1Smbalmer#endif /* !_SECMODEL_KEYLOCK_KEYLOCK_H_ */ 52