matchmediacon - Online Linux Manual Page

Section : 3
Updated : 15 November 2004
Source : dwalsh@redhat.com
Note : SELinux API documentation

NAMEmatchmediacon − get the default SELinux security context for the specified mediatype from the policy

SYNOPSIS#include <selinux/selinux.h> int matchmediacon(const char *media, char **con);

DESCRIPTIONmatchmediacon() matches the specified media type with the media contexts configuration and sets the security context con to refer to the resulting context. Note: Caller must free returned security context con using freecon(3).

RETURN VALUEReturns 0 on success or −1 otherwise.

Files/etc/selinux/{POLICYTYPE}/contexts/files/media

SEE ALSOselinux(8), freecon (3)
0
Johanes Gumabo
Data Size   :   3,291 byte
man-matchmediacon.3Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 1,383,926
Visitor ID   :     :  
Visitor IP   :   18.220.248.77   :  
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 - 25.03.22
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 johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.