Reference

security_member_sid(2)

Compute a SID for selecting a member

NAME

security_member_sid - Compute a SID for selecting a member

SYNOPSIS

#include <ss.h>

int security_member_sid(security_id_t ssid, security_id_t tsid, security_class_t tclass, security_id_t *out_sid);

DESCRIPTION

The security_member_sid call is used to compute a SID to use when selecting a member of a polyinstantiated object in a particular class based on a SID pair.

RETURN VALUE

A zero is returned if the computation was successful. On error, -1 is returned, and errno is set appropriately.

ERRORS

EINVAL

The source SID, target SID or target class was invalid.

EACCES

The process is not authorized to invoke this call.

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)