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:

    security_get_initial_context

    
           pute_user,  security_get_initial_context  -  query  the  SELinux policy
           database in the kernel.
    
    
    

    SYNOPSIS

           #include <selinux/selinux.h>
    
           #include <selinux/flask.h>
    
           int  security_compute_av(security_context_t  scon,   security_context_t
           tcon,   security_class_t   tclass,  access_vector_t  requested,  struct
           av_decision *avd);
    
           int  security_compute_av_flags(security_context_t  scon,  security_con-
           text_t tcon, security_class_t tclass, access_vector_t requested, struct
           av_decision *avd);
    
           int security_compute_create(security_context_t scon, security_context_t
           tcon, security_class_t tclass, security_context_t *newcon);
    
           int   security_compute_relabel(security_context_t  scon,  security_con-
           text_t tcon, security_class_t tclass, security_context_t *newcon);
    
           int security_compute_member(security_context_t scon, security_context_t
           tcon, security_class_t tclass, security_context_t *newcon);
    
           int  security_compute_user(security_context_t  scon,  const char *user-
           name, security_context_t **con);
    
           int security_get_initial_context(const char  *name,  security_context_t
           *con);
    
           int selinux_check_passwd_access(access_vector_t requested);
    
           int checkPasswdAccess(access_vector_t requested);
    
    
    

    DESCRIPTION

           security_compute_av  queries whether the policy permits the source con-
           text scon to access the target context tcon via class tclass  with  the
           requested access vector.  The decision is returned in avd.
    
           security_compute_av_flags is identical to security_compute_av but addi-
           tionally sets the flags field of avd.  Currently one flag is supported:
           SELINUX_AVD_FLAGS_PERMISSIVE,  which indicates the decision is computed
           on a permissive domain.
    
           security_compute_create is used to compute a context to use for  label-
           ing a new object in a particular class based on a SID pair.
    
           security_compute_relabel is used to compute the new context to use when
           relabeling an object, it is used in the pam_selinux.so source  and  the
           passwd  class.   selinux_check_passwd_access  uses getprevcon() for the
           source and target security contexts.
    
           checkPasswdAccess     is     a     deprecated     alias     of      the
           selinux_check_passwd_access function.
    
    
    

    RETURN VALUE

           Returns zero on success or -1 on error.
    
    
    

    SEE ALSO

           selinux(8), getcon(3), getfilecon(3), get_ordered_context_list(3)
    
    
    

    russell@coker.com.au 1 January 2004 security_compute_av(3)

    
    
  • MORE RESOURCE


  • Linux

    The Distributions





    Linux

    The Software





    Linux

    The News



  • MARKETING






  • Toll Free

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