security_class_to_string - Online Linux Manual PageSection : 3
Updated : 30 Mar 2007
Source :
Note : SELinux API documentation

NAMEsecurity_class_to_string, security_av_perm_to_string, string_to_security_class, string_to_av_perm, security_av_string, mode_to_security_class − convert between SELinux class and permission values and string names. print_access_vector − display an access vector in human-readable form.

SYNOPSIS#include <selinux/selinux.h> const char *security_class_to_string(security_class_t tclass); const char *security_av_perm_to_string(security_class_t tclass, access_vector_t av); int security_av_string(security_class_t tclass, access_vector_t av, char **result); security_class_t string_to_security_class(const char *name); security_class_t mode_to_security_class(mode_t mode); access_vector_t string_to_av_perm(security_class_t tclass, const char *name); void print_access_vector(security_class_t tclass, access_vector_t av);

DESCRIPTIONsecurity_class_to_string() returns a string name for class tclass, or NULL if the class is invalid. The returned string must not be modified or freed. security_av_perm_to_string() returns a string name for the access vector bit av of class tclass, or NULL if either argument is invalid. The returned string must not be modified or freed. security_av_string() computes a full access vector string representation using tclass and av, which may have multiple bits set. The string is returned in the memory pointed to by result, and should be freed by the caller using free(3). string_to_security_class() returns the class value corresponding to the string name name, or zero if no such class exists. mode_to_security_class() returns the class value corresponding to the specified mode, or zero if no such class exists. string_to_av_perm() returns the access vector bit corresponding to the string name name and security class tclass, or zero if no such value exists. print_access_vector() displays an access vector in human-readable form on the standard output stream.

RETURN VALUEsecurity_av_string() returns zero on success or −1 on error with errno set appropriately. print_access_vector() does not return a value. All other functions return zero or NULL on error.

ERRORSEINVAL  A class or access vector argument is not recognized by the currently loaded policy. ENOMEM  An attempt to allocate memory failed.

AUTHOREamon Walsh <ewalsh@tycho.nsa.gov>

SEE ALSOselinux(8), getcon(3), getfilecon(3) stat(3)
0
Johanes Gumabo
Data Size   :   8,569 byte
man-print_access_vector.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 185,179
Visitor ID   :     :  
Visitor IP   :   18.119.118.151   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.