Signup
Search Linux manpages For:  

getpidcon(3) -- Linux man page

 

NAME

getcon, getprevcon, getpidcon - get SE Linux security context of a process.  

SYNOPSIS

#include <selinux/selinux.h>

int getcon(security_context_t *context);
int getprevcon(security_context_t *context);
int getpidcon(pid_t pid, security_context_t *context);
int getpeercon(int fd, security_context_t *context);

 

DESCRIPTION

getcon retrieves the context of the current process, which must be free'd with freecon.

getprevcon same as getcon but gets the context before the last exec.

getpidcon returns the process context for the specified PID.

getpeercon retrieves context of peer socket, and set *context to refer to it, which must be free'd with freecon.

 

RETURN VALUE

On error -1 is returned. On success 0 is returned.

 

SEE ALSO

freecon(3), setexeccon(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.