LinuxGuruz
  • Last 5 Forum Topics
    Replies
    Views
    Last post


The Web Only This Site
  • BOOKMARK

  • ADD TO FAVORITES

  • REFERENCES


  • MARC

    Mailing list ARChives
    - Search by -
     Subjects
     Authors
     Bodies





    FOLDOC

    Computing Dictionary




  • Text Link Ads






  • LINUX man pages
  • Linux Man Page Viewer


    The following form allows you to view linux man pages.

    Command:

    selinux_set_callback

    
    
    

    SYNOPSIS

           #include <selinux/selinux.h>
    
           void selinux_set_callback(int type, union selinux_callback callback);
    
    
    

    DESCRIPTION

           selinux_set_callback  sets  the callback indicated by type to the value
           of callback, which should be passed as a function pointer cast to  type
           union selinux_callback.
    
           All  callback  functions  should return a negative value with errno set
           appropriately on error.
    
           The available values for type are:
    
           SELINUX_CB_LOG
                  int (*func_log) (int type, const char *fmt, ...);
    
                  This callback  is  used  for  logging  and  should  process  the
                  printf(3)  style  fmt  string and arguments as appropriate.  The
                  type argument indicates the type of message and will be  set  to
                  one of the following:
    
                  SELINUX_ERROR
    
                  SELINUX_WARNING
    
                  SELINUX_INFO
    
                  SELINUX_AVC
    
           SELINUX_CB_AUDIT
                  int (*func_audit) (void *auditdata, security_class_t cls,
                                     char *msgbuf, size_t msgbufsize);
    
                  This callback is used for supplemental auditing in AVC messages.
                  The auditdata  and  cls  arguments  are  the  values  passed  to
                  avc_has_perm(3).   A  human-readable  interpretation  should  be
                  printed to msgbuf using no more than msgbufsize characters.
    
           SELINUX_CB_VALIDATE
                  int (*func_validate) (security_context_t *ctx);
    
                  This callback is used for context validation.  The callback  may
                  optionally modify the input context by setting the target of the
                  ctx pointer to a new context.   In  this  case,  the  old  value
                  should  be  freed with freecon(3).  The value of errno should be
                  set to EINVAL to indicate an invalid context.
    
                  of the policy generation in the system.
    
    
    

    RETURN VALUE

           None.
    
    
    

    ERRORS

           None.
    
    
    

    AUTHOR

           Eamon Walsh <ewalsh@tycho.nsa.gov>
    
    
    

    SEE ALSO

           selabel_open(3), avc_init(3), avc_netlink_open(3), selinux(8)
    
                                      20 Jun 2007          selinux_set_callback(3)
    
  • MORE RESOURCE


  • Linux

    The Distributions





    Linux

    The Software





    Linux

    The News



  • MARKETING






  • Toll Free

webmaster@linuxguruz.com
Copyright © 1999 - 2016 by LinuxGuruz