CONTEXT_TO_SID
Section: Linux Programmer's Manual (2)
Updated: 15 Mar 2000
Index
Return to Main Contents
NAME
security_load_policy - Load a new policy configuration
SYNOPSIS
#include <ss.h>
int security_load_policy(__u32 pathlen, char *path);
DESCRIPTION
The
security_load_policy
call is used to load a new policy configuration from
a file containing a binary representation of the configuration.
The
pathlen
parameter specifies the length of the pathname, including
the terminating NULL character. If
pathlen
is zero, then the default policy configuration file is reloaded.
RETURN VALUE
A zero is returned on success. On error, -1 is returned, and
errno
is set appropriately.
ERRORS
- EINVAL
-
The configuration was invalid.
- EACCES
-
The process is not authorized to invoke this call on this file.
SEE ALSO
security_compute_av(2), security_sid_to_context(2), security_context_to_sid(2), security_transition_sid(2), security_member_sid(2), security_load_policy(2), security_notify_perm(2), security_get_sids(2)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- ERRORS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 17:08:29 GMT, December 18, 2000