avc_get_initial_context man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

avc_context_to_sid(3)	   SELinux API documentation	 avc_context_to_sid(3)

       avc_context_to_sid,  avc_sid_to_context,	 avc_get_initial_sid  - obtain
       and manipulate SELinux security ID's

       #include <selinux/selinux.h>
       #include <selinux/avc.h>

       int avc_context_to_sid(security_context_t ctx, security_id_t *sid);

       int avc_sid_to_context(security_id_t sid, security_context_t *ctx);

       int avc_get_initial_sid(const char *name, security_id_t *sid);

       Security ID's (SID's) are opaque representations of security  contexts,
       managed by the userspace AVC.

       avc_context_to_sid()  returns a SID for the given context in the memory
       referenced by sid.

       avc_sid_to_context() returns a copy of the context represented  by  sid
       in  the	memory	referenced  by	ctx.  The user must free the copy with

       avc_get_initial_sid() returns a SID for	the  kernel  initial  security
       identifier specified by name.

       avc_context_to_sid()  and  avc_sid_to_context() return zero on success.
       On error, -1 is returned and errno is set appropriately.

       ENOMEM An attempt to allocate memory failed.

       As of libselinux version 2.0.86, SID's are no longer reference counted.
       A  SID  will be valid from the time it is first obtained until the next
       call to avc_destroy(3).	The sidget(3) and  sidput(3)  functions,  for‐
       merly  used  to	adjust	the reference count, are no-ops and are depre‐

       Eamon Walsh <ewalsh@tycho.nsa.gov>

       avc_init(3), avc_has_perm(3), avc_cache_stats(3), avc_add_callback(3),
       getcon(3), freecon(3), selinux(8)

				  27 May 2004		 avc_context_to_sid(3)

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net