RSBAC_REMOVE_TARGET_N(2)

NAME
rsbac_remove_target_n - remove all RSBAC attribute values for target

SYNOPSIS
#include <rsbac/types.h>

#include <rsbac/syscalls.h>

int rsbac_remove_target_n(enum rsbac_target_t target, char * t_name);

DESCRIPTION
rsbac_remove_target_n requests from the kernel to remove all attribute values of target with target path name t_name. Valid targets are FILE, DIR, DEV. The data structures are defined as follows:

    enum   rsbac_target_t {T_FILE, T_DIR, T_DEV, T_IPC, T_SCD,
                           T_USER, T_PROCESS, T_NONE};

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

ERRORS

EPERM
    The decision component denied attribute read for this user/process.

RSBAC_EINVALIDTARGET
    The target is invalid, e.g. FILE, DEV or DIR.

RSBAC_ENOTINITIALIZED
    The RSBAC system is not initialized, so no attributes are available.

RSBAC_ENOMEM
    The RSBAC system has not enough memory to save attributes to disk.

RSBAC_EWRITEFAILED
    The RSBAC system ran into a write error while saving attributes to disk.

SEE ALSO
rsbac_get_attr(2),rsbac_get_attr_n(2),rsbac_set_attr(2),rsbac_set_attr_n(2),rsbac_remove_target_n(2).

AUTHOR
Amon Ott <ao@compuniverse.com>