Signup
Search Linux manpages For:  

matchmediacon(3) -- Linux man page

 

NAME

matchmediacon - get the default security context for the specified mediatype from the policy.

 

SYNOPSIS

#include <selinux/selinux.h>

int matchmediacon(const char *media, security_context_t *con);

 

DESCRIPTION


matchmediacon 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.  

RETURN VALUE

Returns 0 on success or -1 otherwise.

 

Files

/etc/selinux/POLICYTYPE/contexts/files/media

 

SEE ALSO

freecon(3)


 
LINUX MAN PAGES
Man1 -- User Commands (Intro)
Man2 -- System Calls (Intro)
Man3 -- Library Functions (Intro)
Man4 -- Special Files (Intro)
Man5 -- File Formats (Intro)
Man6 -- Games (Intro)
Man7 -- Miscellaneous (Intro)
Man8 -- Administration (Intro)
Mann -- TCL Functions (not available)


WEB HOSTING SHOWCASE




 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2012 Broadband Media, Inc. All rights reserved.