avc_compute_member man page on YellowDog

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

avc_compute_create(3)	   SELinux API documentation	 avc_compute_create(3)

NAME
       avc_compute_create,  avc_compute_member	- obtain SELinux label for new
       object.

SYNOPSIS
       #include <selinux/selinux.h>

       #include <selinux/avc.h>

       int avc_compute_create(security_id_t ssid, security_id_t tsid,
			      security_class_t tclass, security_id_t *newsid);

       int avc_compute_member(security_id_t ssid, security_id_t tsid,
			      security_class_t tclass, security_id_t *newsid);

DESCRIPTION
       avc_compute_create is used to compute a SID to use for labeling	a  new
       object in a particular class based on a SID pair.  This call is identiā€
       cal to security_compute_create, but does not  require  converting  from
       userspace SID's to contexts and back again.

       avc_compute_member  is  used  to	 compute  a  SID to use for labeling a
       polyinstantiated object instance of a particular class based on	a  SID
       pair.   This call is identical to security_compute_member, but does not
       require converting from userspace SID's to contexts and back again.

       These functions return a SID for the computed  context  in  the	memory
       referenced by sid, incrementing its reference count by 1.

RETURN VALUE
       On  success,  zero  is returned.	 On error, -1 is returned and errno is
       set appropriately.

ERRORS
       EINVAL The tclass and/or the security contexts referenced by  ssid  and
	      tsid  are not recognized by the currently loaded policy, or tsid
	      or ssid has a zero reference count and is invalid.

       ENOMEM An attempt to allocate memory failed.

AUTHOR
       Eamon Walsh <ewalsh@tycho.nsa.gov>

SEE ALSO
       avc_init(3),	avc_context_to_sid(3),	   security_compute_create(3),
       selinux(8)

				  30 Mar 2007		 avc_compute_create(3)
[top]

List of man pages available for YellowDog

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]
Tweet
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