RSBAC_SWITCH(2)

NAME
rsbac_switch - switch RSBAC decision modules on or off

SYNOPSIS
#include <rsbac/types.h>

#include <rsbac/syscalls.h>

int rsbac_switch(enum rsbac_switch_target_t target, int value);

DESCRIPTION
rsbac_switch is used to switch RSBAC decision module target on or off. Value 1 means on, 0 off.

Valid targets are MAC, CWI, FC, SIM, PM, MS, FF. The data structures are defined as follows:

    enum  rsbac_switch_target_t {MAC,CWI,FC,SIM,PM,MS,FF,SW_NONE};

RETURN VALUE
rsbac_switch returns 0 on success and an error code otherwise.

ERRORS

EPERM
    The decision component denied module switching to this user/process.

RSBAC_EINVALIDTARGET
    The target is invalid.

RSBAC_EINVALIDVALUE
    Value is not 0 or 1.

SEE ALSO
rsbac_adf_log_switch(2).

AUTHOR
Amon Ott <ao@compuniverse.com>