Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.


  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright 2013, Joyent, Inc. All rights reserved.
  24  */
  25 
  26 #ifndef _LIBSCF_PRIV_H
  27 #define _LIBSCF_PRIV_H
  28 
  29 
  30 #include <libscf.h>
  31 #include <unistd.h>



  32 
  33 #ifdef  __cplusplus
  34 extern "C" {
  35 #endif
  36 
  37 /*
  38  * NOTE
  39  *
  40  * The contents of this file are private to the implementation of Solaris
  41  * and are subject to change at any time without notice.
  42  */
  43 
  44 #define SCF_PG_GENERAL_TYPE             SCF_GROUP_FRAMEWORK
  45 #define SCF_PG_GENERAL_FLAGS            0
  46 
  47 #define SCF_PG_GENERAL_OVR_TYPE         SCF_GROUP_FRAMEWORK
  48 #define SCF_PG_GENERAL_OVR_FLAGS        SCF_PG_FLAG_NONPERSISTENT
  49 
  50 #define SCF_PG_DEATHROW_TYPE            SCF_GROUP_FRAMEWORK
  51 #define SCF_PG_DEATHROW_FLAGS           SCF_PG_FLAG_NONPERSISTENT


 575 
 576 /*
 577  * _scf_get_fma_notify_params()
 578  * Specialized fuction to get fma notifitation parameters
 579  */
 580 int _scf_get_fma_notify_params(const char *, nvlist_t *, int);
 581 
 582 /*
 583  * _scf_get_svc_notify_params()
 584  * Specialized function to get SMF state transition notification parameters
 585  */
 586 int _scf_get_svc_notify_params(const char *, nvlist_t *, int32_t, int, int);
 587 
 588 /*
 589  * _scf_notify_get_params()
 590  * Specialized function to get notification parametes from a pg into an
 591  * nvlist_t
 592  */
 593 int _scf_notify_get_params(scf_propertygroup_t *, nvlist_t *);
 594 




 595 #define SCF_NOTIFY_PARAMS_SOURCE_NAME   ((const char *)"preference_source")
 596 
 597 #ifdef  __cplusplus
 598 }
 599 #endif
 600 
 601 #endif  /* _LIBSCF_PRIV_H */


  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright 2013, Joyent, Inc. All rights reserved.
  24  */
  25 
  26 #ifndef _LIBSCF_PRIV_H
  27 #define _LIBSCF_PRIV_H
  28 
  29 
  30 #include <libscf.h>
  31 #include <unistd.h>
  32 #if !defined(NATIVE_BUILD)
  33 #include <sys/secflags.h>
  34 #endif
  35 
  36 #ifdef  __cplusplus
  37 extern "C" {
  38 #endif
  39 
  40 /*
  41  * NOTE
  42  *
  43  * The contents of this file are private to the implementation of Solaris
  44  * and are subject to change at any time without notice.
  45  */
  46 
  47 #define SCF_PG_GENERAL_TYPE             SCF_GROUP_FRAMEWORK
  48 #define SCF_PG_GENERAL_FLAGS            0
  49 
  50 #define SCF_PG_GENERAL_OVR_TYPE         SCF_GROUP_FRAMEWORK
  51 #define SCF_PG_GENERAL_OVR_FLAGS        SCF_PG_FLAG_NONPERSISTENT
  52 
  53 #define SCF_PG_DEATHROW_TYPE            SCF_GROUP_FRAMEWORK
  54 #define SCF_PG_DEATHROW_FLAGS           SCF_PG_FLAG_NONPERSISTENT


 578 
 579 /*
 580  * _scf_get_fma_notify_params()
 581  * Specialized fuction to get fma notifitation parameters
 582  */
 583 int _scf_get_fma_notify_params(const char *, nvlist_t *, int);
 584 
 585 /*
 586  * _scf_get_svc_notify_params()
 587  * Specialized function to get SMF state transition notification parameters
 588  */
 589 int _scf_get_svc_notify_params(const char *, nvlist_t *, int32_t, int, int);
 590 
 591 /*
 592  * _scf_notify_get_params()
 593  * Specialized function to get notification parametes from a pg into an
 594  * nvlist_t
 595  */
 596 int _scf_notify_get_params(scf_propertygroup_t *, nvlist_t *);
 597 
 598 #if !defined(NATIVE_BUILD)
 599 int scf_default_secflags(scf_handle_t *, psecflags_t *);
 600 #endif
 601 
 602 #define SCF_NOTIFY_PARAMS_SOURCE_NAME   ((const char *)"preference_source")
 603 
 604 #ifdef  __cplusplus
 605 }
 606 #endif
 607 
 608 #endif  /* _LIBSCF_PRIV_H */