security_load_policy2
Load a new policy configuration
Usage
#include <ss.h>
int security_load_policy(const char * path, __u32 pathlen);
Overview
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. |