1221420Sdes/* $Id: port-solaris.h,v 1.2 2010/11/05 01:03:05 dtucker Exp $ */ 2162852Sdes 3162852Sdes/* 4162852Sdes * Copyright (c) 2006 Chad Mynhier. 5162852Sdes * 6162852Sdes * Permission to use, copy, modify, and distribute this software for any 7162852Sdes * purpose with or without fee is hereby granted, provided that the above 8162852Sdes * copyright notice and this permission notice appear in all copies. 9162852Sdes * 10162852Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11162852Sdes * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12162852Sdes * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13162852Sdes * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14162852Sdes * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15162852Sdes * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16162852Sdes * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17162852Sdes */ 18162852Sdes 19162852Sdes#ifndef _PORT_SOLARIS_H 20162852Sdes 21162852Sdes#include <sys/types.h> 22162852Sdes 23221420Sdes#include <pwd.h> 24221420Sdes 25162852Sdesvoid solaris_contract_pre_fork(void); 26162852Sdesvoid solaris_contract_post_fork_child(void); 27162852Sdesvoid solaris_contract_post_fork_parent(pid_t pid); 28221420Sdesvoid solaris_set_default_project(struct passwd *); 29296781Sdes# ifdef USE_SOLARIS_PRIVS 30323124Sdes#include <priv.h> 31296781Sdespriv_set_t *solaris_basic_privset(void); 32296781Sdesvoid solaris_drop_privs_pinfo_net_fork_exec(void); 33296781Sdesvoid solaris_drop_privs_root_pinfo_net(void); 34296781Sdesvoid solaris_drop_privs_root_pinfo_net_exec(void); 35296781Sdes# endif /* USE_SOLARIS_PRIVS */ 36162852Sdes 37162852Sdes#endif 38